TypeScript/tests/cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts

5 lines
101 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface I<T> {
<U extends T>(u: U): U;
}
var i: I<string>;
var y = i(""); // y should be string