TypeScript/tests/baselines/reference/typeParametersShouldNotBeEqual3.js

19 lines
353 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [typeParametersShouldNotBeEqual3.ts]
function ff<T extends Object, U extends Object>(x: T, y: U) {
var z: Object;
x = x; // Ok
x = y; // Ok
x = z; // Ok
z = x; // Ok
}
//// [typeParametersShouldNotBeEqual3.js]
function ff(x, y) {
var z;
x = x; // Ok
x = y; // Ok
x = z; // Ok
z = x; // Ok
2014-07-13 01:04:16 +02:00
}