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
Incremental compilation with computed property conflicting with type parameter causes spurious error #49562
declareconstO: unique symbol;declareclassBar<O>{[O]: number// A computed property name cannot reference a type parameter from its containing type.}// DELETE THIS LINE TO TRIGGER ERROR
The playground exhibits the issue, as does tsc --watch.
🙁 Actual behavior
After deleting the comment line and triggering incremental compilation, the error message
src/test.ts:4:4 - error TS2467: A computed property name cannot reference a type parameter from its containing type.
3 [O]: number // A computed property name cannot reference a type parameter from its containing type.
appears.
🙂 Expected behavior
No error should appear after deleting the comment or triggering incremental compilation.
Activity
Use value meaning for computed property name
Use value meaning for computed property name for visibility check (#4…