TypeScript/tests/baselines/reference/typeParametersShouldNotBeEqual.errors.txt
2014-07-12 17:30:19 -07:00

13 lines
364 B
Plaintext

==== tests/cases/compiler/typeParametersShouldNotBeEqual.ts (2 errors) ====
function ff<T, U>(x: T, y: U) {
var z: Object;
x = x; // Ok
x = y; // Error
~
!!! Type 'U' is not assignable to type 'T'.
x = z; // Error
~
!!! Type 'Object' is not assignable to type 'T'.
z = x; // Ok
}