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
yield<T> (v: T)=>v
sub issue of #9878
(function* () { yield <T>(v: T) => v; });
{ "jsc": { "parser": { "syntax": "typescript", "tsx": false }, "target": "es2022" }, "module": { "type": "es6" }, "minify": false, "isModule": true }
https://play.swc.rs/?version=1.10.9&code=H4sIAAAAAAAAA9NIK81LLsnMz9NS0NBUqOZSAILKzNScFAWbEDuNMiuFEE0FWzuFMmuuWk1rAMYyBAQtAAAA&config=H4sIAAAAAAAAA02NOQ6EMAxF%2B5wick2BUlBwBw4RgUFBLJFtpIkQd58kkBk6%2F%2FcXn0prmLmHVp%2FxjMJbYqSfjoTDJvYTCUjwyD05L1AVVzhZo10YM7puB8TShJJayKY2BtTjwboPx4L%2Fj2n1zjWvkNvcGMpyRo670hQ6UF1fU15err0AAAA%3D
No response
SWC should parse successfully.
all
The text was updated successfully, but these errors were encountered:
Investigation: When JSX/TSX is enabled, this code can be correctly parsed.
CC @kdy1 Do you have any ideas?
Sorry, something went wrong.
magic-akari
Successfully merging a pull request may close this issue.
Describe the bug
sub issue of #9878
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.10.9&code=H4sIAAAAAAAAA9NIK81LLsnMz9NS0NBUqOZSAILKzNScFAWbEDuNMiuFEE0FWzuFMmuuWk1rAMYyBAQtAAAA&config=H4sIAAAAAAAAA02NOQ6EMAxF%2B5wick2BUlBwBw4RgUFBLJFtpIkQd58kkBk6%2F%2FcXn0prmLmHVp%2FxjMJbYqSfjoTDJvYTCUjwyD05L1AVVzhZo10YM7puB8TShJJayKY2BtTjwboPx4L%2Fj2n1zjWvkNvcGMpyRo670hQ6UF1fU15err0AAAA%3D
SWC Info output
No response
Expected behavior
SWC should parse successfully.
Actual behavior
No response
Version
all
Additional context
No response
The text was updated successfully, but these errors were encountered: