10 lines
287 B
JavaScript
10 lines
287 B
JavaScript
//// [newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts]
|
|
interface I<T> {
|
|
new <U extends T>(u: U): U;
|
|
}
|
|
var i: I<string>;
|
|
var y = new i(""); // y should be string
|
|
|
|
//// [newExpressionWithTypeParameterConstrainedToOuterTypeParameter.js]
|
|
var i;
|
|
var y = new i("");
|