18 lines
329 B
JavaScript
18 lines
329 B
JavaScript
//// [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;
|
|
x = y;
|
|
x = z;
|
|
z = x;
|
|
}
|