Open sculove opened 7 years ago
interface Mappable<T> { map<U>(f: (x: T) => U): Mappable<U>; } declare let a: Mappable<number>; declare let b: Mappable<string | number>; a = b; // should fail, now does. b = a; // should succeed, continues to do so.