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

13 lines
148 B
TypeScript

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);