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
{{ message }}
Repository navigation
Generic syntax ambiguity is handled incorrectlyΒ #60874
The general Relational Expression ambiguity is a long-standing known issue. But as you mention, this is a more specific case where there's no ambiguity given that < b, (c > cannot be parsed as type arguments.
Whilst the TypeScript parser deems < b, (c > to be erasable types, most other mainstream parsers do not. These parsers correctly preserve the original JS semantics when attempting to parse as TS:
Activity
robpalme commentedon Dec 30, 2024
The general Relational Expression ambiguity is a long-standing known issue. But as you mention, this is a more specific case where there's no ambiguity given that
< b, (c >cannot be parsed as type arguments.Whilst the TypeScript parser deems
< b, (c >to be erasable types, most other mainstream parsers do not. These parsers correctly preserve the original JS semantics when attempting to parse as TS:magic-akari commentedon Nov 15, 2026
Iβm working on a fix for this.