TypeScript/tests/cases/compiler/typeParameterArgumentEquivalence3.ts

7 lines
152 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function foo<T,U>() {
var x: (item) => T;
var y: (item) => boolean;
x = y; // Should be an error
y = x; // Shound be an error
}