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

5 lines
101 B
TypeScript

interface I<T> {
<U extends T>(u: U): U;
}
var i: I<string>;
var y = i(""); // y should be string