TypeScript/tests/cases/compiler/typeParametersShouldNotBeEqual.ts
2014-07-12 17:30:19 -07:00

8 lines
131 B
TypeScript

function ff<T, U>(x: T, y: U) {
var z: Object;
x = x; // Ok
x = y; // Error
x = z; // Error
z = x; // Ok
}