TypeScript/tests/cases/compiler/typeParameterArgumentEquivalence5.ts
2014-07-12 17:30:19 -07:00

7 lines
158 B
TypeScript

function foo<T,U>() {
var x: () => (item) => U;
var y: () => (item) => T;
x = y; // Should be an error
y = x; // Shound be an error
}