==== tests/cases/compiler/genericTypeAssertions6.ts (3 errors) ==== class A { constructor(x) { var y = x; var z = x; } f(x: T, y: U) { x = y; ~~~~ !!! Neither type 'T' nor type 'U' is assignable to the other. y = x; ~~~~ !!! Neither type 'U' nor type 'T' is assignable to the other. } } class B extends A { g(x: T) { var a: Date = x; var b = x; var c = new Date(); var d = new Date(); var e = new Date(); ~~~~~~~~~~~~~~~~ !!! Neither type 'T' nor type 'U' is assignable to the other. } } var b: B; var c: A = >b;