TypeScript/tests/cases/compiler/transitiveTypeArgumentInference1.ts

13 lines
148 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface I1<T, U> {
m(value: T): U;
}
var i: I1<boolean, string> = null;
class C<T> {
constructor(p: I1<boolean, T>) {
}
}
var c = new C(i);