44 lines
571 B
Text
44 lines
571 B
Text
=== tests/cases/compiler/rectype.ts ===
|
|
module M {
|
|
>M : typeof M
|
|
|
|
interface I { (i:I):I; }
|
|
>I : I
|
|
>i : I
|
|
>I : I
|
|
>I : I
|
|
|
|
export function f(p: I) { return f };
|
|
>f : typeof f
|
|
>p : I
|
|
>I : I
|
|
>f : typeof f
|
|
|
|
var i:I;
|
|
>i : I
|
|
>I : I
|
|
|
|
f(i);
|
|
>f(i) : typeof f
|
|
>f : typeof f
|
|
>i : I
|
|
|
|
f(f(i));
|
|
>f(f(i)) : typeof f
|
|
>f : typeof f
|
|
>f(i) : typeof f
|
|
>f : typeof f
|
|
>i : I
|
|
|
|
f((f(f(i))));
|
|
>f((f(f(i)))) : typeof f
|
|
>f : typeof f
|
|
>(f(f(i))) : typeof f
|
|
>f(f(i)) : typeof f
|
|
>f : typeof f
|
|
>f(i) : typeof f
|
|
>f : typeof f
|
|
>i : I
|
|
}
|
|
|
|
|