diff --git a/crates/oxc_linter/src/rules/eslint/no_undef.rs b/crates/oxc_linter/src/rules/eslint/no_undef.rs index 26398346aa455..bcdf17a896fde 100644 --- a/crates/oxc_linter/src/rules/eslint/no_undef.rs +++ b/crates/oxc_linter/src/rules/eslint/no_undef.rs @@ -157,6 +157,7 @@ fn test() { "class C { static { function a() {} a; } }", "class C { static { a; function a() {} } }", "String;Array;Boolean;", + "function resolve(path: string): T { return { path } as T; }" ]; let fail = vec![