16 lines
353 B
TypeScript
16 lines
353 B
TypeScript
//// [typeParameterArgumentEquivalence3.ts]
|
|
function foo<T,U>() {
|
|
var x: (item) => T;
|
|
var y: (item) => boolean;
|
|
x = y; // Should be an error
|
|
y = x; // Shound be an error
|
|
}
|
|
|
|
|
|
//// [typeParameterArgumentEquivalence3.js]
|
|
function foo() {
|
|
var x;
|
|
var y;
|
|
x = y; // Should be an error
|
|
y = x; // Shound be an error
|
|
}
|