We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export type T = number; function foo(n: number): T { type T = string; return n; }
T in return type of foo should resolve to top level export type T, but instead gets resolved to type T inside the function body. Oxc Playground
T
foo
export type T
type T
TypeScript resolves it to the top-level T. TS Playground. If it was resolving to type T, the code would fail type check.
The text was updated successfully, but these errors were encountered:
Boshen
Successfully merging a pull request may close this issue.
T
in return type offoo
should resolve to top levelexport type T
, but instead gets resolved totype T
inside the function body. Oxc PlaygroundTypeScript resolves it to the top-level
T
. TS Playground. If it was resolving totype T
, the code would fail type check.The text was updated successfully, but these errors were encountered: