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
test.ts(10,10): error TS2322: Type 'Mapped1<T>' is not assignable to type 'Mapped2<T>'.
Type 'T[P]' is not assignable to type 'T[P]'. Two different types with this name exist, but they are
unrelated.
The text was updated successfully, but these errors were encountered:
Agreed. I think we need a rule that a mapped type { [P1 in K1] : X1 } is related to a mapped type { [P2 in K2]: X2 } when K1 is related to K2 and X1 is related to an instantiation of X2 that substitutes P1 for P2.
test.ts(18,10): error TS2322: Type 'Mapped1<T>' is not assignable to type 'Mapped2<T>'.
Type 'Fooify<T[P]>' is not assignable to type 'Barify<T[P]> | Fooify<T[P]>'.
Type 'Fooify<T[P]>' is not assignable to type 'Fooify<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.
I presumed the issue in the OP is the underlying cause for this.
TypeScript Version: nightly (2.2.0-dev.20161211)
Code
Expected behavior:
No error.
Actual behavior:
The text was updated successfully, but these errors were encountered: