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
typeFoo<Textendsstring>={[RemappedTinTas `get${RemappedT}`]: RemappedT;};constget=<Textendsstring>(t: T,foo: Foo<T>): T=>foo[`get${t}`];// Type '`get${T}`' is not assignable to type 'T'
🙁 Actual behavior
When resolving the type of foo[`get${t}`], Typescript substitutes RemappedT with `get${T}`. foo[`get${t}`] ends up resolving to `get${T}`.
🙂 Expected behavior
Typescript should resolve foo[`get${t}`] with the type T.