21 lines
352 B
Text
21 lines
352 B
Text
=== tests/cases/compiler/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts ===
|
|
interface I<T> {
|
|
>I : I<T>
|
|
>T : T
|
|
|
|
new <U extends T>(u: U): U;
|
|
>U : U
|
|
>T : T
|
|
>u : U
|
|
>U : U
|
|
>U : U
|
|
}
|
|
var i: I<string>;
|
|
>i : I<string>
|
|
>I : I<T>
|
|
|
|
var y = new i(""); // y should be string
|
|
>y : string
|
|
>new i("") : string
|
|
>i : I<string>
|
|
|