TypeScript/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types

53 lines
2.5 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts ===
export module x {
2015-04-13 23:01:57 +02:00
>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export class c {
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 17))
2014-08-15 23:33:16 +02:00
foo(a: number) {
2015-04-13 23:01:57 +02:00
>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20))
>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 2, 12))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 2, 12))
2014-08-15 23:33:16 +02:00
}
}
}
export module m2 {
2015-04-13 23:01:57 +02:00
>m2 : typeof m2, Symbol(m2, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 6, 1))
2014-08-15 23:33:16 +02:00
export module m3 {
2015-04-13 23:01:57 +02:00
>m3 : typeof m3, Symbol(m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18))
2014-08-15 23:33:16 +02:00
export import c = x.c;
2015-04-13 23:01:57 +02:00
>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22))
>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 0))
>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 17))
2014-08-15 23:33:16 +02:00
export var cProp = new c();
2015-04-13 23:01:57 +02:00
>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 11, 18))
2014-08-15 23:33:16 +02:00
>new c() : c
2015-04-13 23:01:57 +02:00
>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22))
2014-08-15 23:33:16 +02:00
var cReturnVal = cProp.foo(10);
2015-04-13 23:01:57 +02:00
>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 12, 11))
2014-08-15 23:33:16 +02:00
>cProp.foo(10) : number
2015-04-13 23:01:57 +02:00
>cProp.foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20))
>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 11, 18))
>foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
}
}
export var d = new m2.m3.c();
2015-04-13 23:01:57 +02:00
>d : x.c, Symbol(d, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 16, 10))
2014-08-25 19:36:12 +02:00
>new m2.m3.c() : x.c
2015-04-13 23:01:57 +02:00
>m2.m3.c : typeof x.c, Symbol(m2.m3.c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22))
>m2.m3 : typeof m2.m3, Symbol(m2.m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18))
>m2 : typeof m2, Symbol(m2, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 6, 1))
>m3 : typeof m2.m3, Symbol(m2.m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18))
>c : typeof x.c, Symbol(m2.m3.c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22))
2014-08-15 23:33:16 +02:00