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
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:
π Search Terms
generic syntax ambiguity
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?#code/MYewdgzgLgBAhjAvDAjAGhgIyTATB4HAZgwBMcAWDAUxwFYBuAKFEhABtqA6dkAcwAUCADxYMAwgD4YA8gDIY1AJQrmQA
π» Code
π Actual behavior
This expression is not callable.
π Expected behavior
true false
Additional information about the issue
While there might be some justification for why
doesn't work as it did in JS, in the provided example there isn't even any disambiguity.
The text was updated successfully, but these errors were encountered: