2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts ===
|
|
|
|
interface I<T> {
|
|
|
|
>I : I<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
<U extends T>(u: U): U;
|
|
|
|
>U : U
|
|
|
|
>T : T
|
|
|
|
>u : U
|
|
|
|
>U : U
|
|
|
|
>U : U
|
|
|
|
}
|
|
|
|
var i: I<string>;
|
|
|
|
>i : I<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>I : I<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y = i(""); // y should be string
|
|
|
|
>y : string
|
|
|
|
>i("") : string
|
|
|
|
>i : I<string>
|
|
|
|
|