You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: The module's source code could not be parsed: Expected ';', '}' or <eof> at file:///redacted/type_tests.ts:1:20
Array<5> satisfies unknown;
~~~~~~~
Version
1.4.1-nightly-20240210.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems a satisfies or "as" expr fails to parse if preceeded by a TS instantiation.
Input code
Or:
Config
No response
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.4.1-nightly-20240210.1&code=H4sIAAAAAAAAA3MsKkqstDG1U0gsVijNy87LL8%2Bz5uUCAIBwXDoWAAAA&config=H4sIAAAAAAAAA1WPSw7CMAxE9z1F5DVbWHAHDhEFtwrKT7ErEVW9O%2FkDu%2FjNTMY%2BFiHgRQru4sjPPAQZCeOcM6HkWL4zAU4BSUUdGC5DZSoSxx0rOZsALOOGXEJI1%2B4G4z1hZqs0hJ1Z7fSafvuUtyEi0b%2BxWKXbzMy3uqVXgvXPvYr9jrJrq7%2FB1zTK5seg6TGS9YjzA2yuiPwTAQAA
SWC Info output
1.4.1-nightly-20240210.1
Expected behavior
Should parse
Actual behavior
Version
1.4.1-nightly-20240210.1
Additional context
No response
The text was updated successfully, but these errors were encountered: