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