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
Fails to compile at the initialization of x with the claim the types were incompatible:
app.ts(200,9): error TS2322: Type 'M<T>' is not assignable to type '{ [P in keyof T]: A<T[P]>; }'.
Type 'A<T[P]>' is not assignable to type 'A<T[P]>'. Two different types with this name exist, but they are unrelated.
Type 'T[P]' is not assignable to type 'T[P]'. Two different types with this name exist, but they are unrelated.
(Maybe this is the expected behavior for some reason, but it seems off to me.)
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.5
Code
Expected behavior:
Should compile.
Actual behavior:
Fails to compile at the initialization of
x
with the claim the types were incompatible:(Maybe this is the expected behavior for some reason, but it seems off to me.)
The text was updated successfully, but these errors were encountered: