10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
//// [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("");
|