TypeScript/tests/baselines/reference/functionCall5.types
2015-04-13 14:29:37 -07:00

21 lines
848 B
Plaintext

=== tests/cases/compiler/functionCall5.ts ===
module m1 { export class c1 { public a; }}
>m1 : typeof m1, Symbol(m1, Decl(functionCall5.ts, 0, 0))
>c1 : c1, Symbol(c1, Decl(functionCall5.ts, 0, 11))
>a : any, Symbol(a, Decl(functionCall5.ts, 0, 29))
function foo():m1.c1{return new m1.c1();};
>foo : () => m1.c1, Symbol(foo, Decl(functionCall5.ts, 0, 42))
>m1 : any, Symbol(m1, Decl(functionCall5.ts, 0, 0))
>c1 : m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11))
>new m1.c1() : m1.c1
>m1.c1 : typeof m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11))
>m1 : typeof m1, Symbol(m1, Decl(functionCall5.ts, 0, 0))
>c1 : typeof m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11))
var x = foo();
>x : m1.c1, Symbol(x, Decl(functionCall5.ts, 2, 3))
>foo() : m1.c1
>foo : () => m1.c1, Symbol(foo, Decl(functionCall5.ts, 0, 42))