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
get
class field asi
https://www.typescriptlang.org/play/?noImplicitAny=false&filetype=js#code/MYGwhgzhAECC0G8BQ1XQOYFMAuK0CoAPACgEpEBfJKoA
class A { get *x() {} }
tsc marks the * as an error (Identifier expected.)
*
Identifier expected.
Given that there cannot be a * after get, ASI kicks in and that code is equivalent to
class A { get; *x() {} }
Firefox also gets this wrong, I submitted a test262 test case: tc39/test262#4189
Also, ASI does not apply to
class A { get async x() {} }
because async is a valid token after get.
async
The text was updated successfully, but these errors were encountered:
rbuckton
Successfully merging a pull request may close this issue.
π Search Terms
class field asi
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?noImplicitAny=false&filetype=js#code/MYGwhgzhAECC0G8BQ1XQOYFMAuK0CoAPACgEpEBfJKoA
π» Code
π Actual behavior
tsc marks the
*
as an error (Identifier expected.
)π Expected behavior
Given that there cannot be a
*
afterget
, ASI kicks in and that code is equivalent toAdditional information about the issue
Firefox also gets this wrong, I submitted a test262 test case: tc39/test262#4189
Also, ASI does not apply to
because
async
is a valid token afterget
.The text was updated successfully, but these errors were encountered: