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
extends infer T extends
esbuild 0.15.16
The problem is kinda similar to #2675 and #2330, but slightly different case, so I posting it as a separate issue.
Having a such code:
type A<T> = {}; type B = {} extends infer T extends {} ? A<T> : never;
Compiles fine by tsc, but fails in esbuild with [ERROR] Expected "?" but found "extends".
tsc
esbuild
[ERROR] Expected "?" but found "extends"
BUT it compiles fine by esbuild if explicit parenthesis added:
type A<T> = {}; type B = {} extends (infer T extends {}) ? A<T> : never;
So seems like esbuild just confused about order here.
The text was updated successfully, but these errors were encountered:
9ce5f94
No branches or pull requests
esbuild 0.15.16
The problem is kinda similar to #2675 and #2330, but slightly different case, so I posting it as a separate issue.
Having a such code:
Compiles fine by
tsc
, but fails inesbuild
with[ERROR] Expected "?" but found "extends"
.BUT it compiles fine by
esbuild
if explicit parenthesis added:So seems like
esbuild
just confused about order here.The text was updated successfully, but these errors were encountered: