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
classFoo<T,U>{thing(): Readonly<T>{returnundefinedasT;}erroringThing(): Readonly<T&U>{returnundefinedasT&U;// Type 'T & U' is not assignable to type 'Readonly<T & U>'.}}
Expected behavior:
Both of these are error free.
Actual behavior:
Type 'T & U' is not assignable to type 'Readonly<T & U>'.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.6.2
Code
Expected behavior:
Both of these are error free.
Actual behavior:
Type 'T & U' is not assignable to type 'Readonly<T & U>'.
The text was updated successfully, but these errors were encountered: