TypeScript/tests/baselines/reference/rectype.types
2014-08-28 12:40:58 -07:00

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
}