TypeScript/tests/baselines/reference/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.js

11 lines
299 B
TypeScript
Raw Normal View History

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