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
declareconstO: uniquesymbol;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.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
incremental compilation computed property reference type parameter
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
The playground exhibits the issue, as does
tsc --watch
.π Actual behavior
After deleting the comment line and triggering incremental compilation, the error message
appears.
π Expected behavior
No error should appear after deleting the comment or triggering incremental compilation.
The text was updated successfully, but these errors were encountered: