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