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
Basically, the main issue is that as soon as I use an indexed access type with a unique symbol on a type parameter, things fall apart.
declareconstfooProp: uniquesymbol;exportinterfaceFoo<T>{[fooProp]: T}functionf<TextendsFoo<any>>(x: T){constabc=x[fooProp]// expected: 'T[typeof fooProp]'; actual: 'any'/** * Expected: no error * Actual: Type 'unique symbol' cannot be used to index type 'T'. */constdef: T[typeoffooProp]=x[fooProp]}
The text was updated successfully, but these errors were encountered:
Found helping @bterlson with something.
Basically, the main issue is that as soon as I use an indexed access type with a
unique symbol
on a type parameter, things fall apart.The text was updated successfully, but these errors were encountered: