TypeScript/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types

53 lines
868 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts ===
export module x {
>x : typeof x
2014-08-15 23:33:16 +02:00
export class c {
>c : c
2014-08-15 23:33:16 +02:00
foo(a: number) {
>foo : (a: number) => number
>a : number
2014-08-15 23:33:16 +02:00
return a;
>a : number
2014-08-15 23:33:16 +02:00
}
}
}
export module m2 {
>m2 : typeof m2
2014-08-15 23:33:16 +02:00
export module m3 {
>m3 : typeof m3
2014-08-15 23:33:16 +02:00
export import c = x.c;
>c : typeof c
>x : typeof x
>c : c
2014-08-15 23:33:16 +02:00
export var cProp = new c();
>cProp : c
2014-08-15 23:33:16 +02:00
>new c() : c
>c : typeof c
2014-08-15 23:33:16 +02:00
var cReturnVal = cProp.foo(10);
>cReturnVal : number
2014-08-15 23:33:16 +02:00
>cProp.foo(10) : number
>cProp.foo : (a: number) => number
>cProp : c
>foo : (a: number) => number
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();
>d : x.c
2014-08-25 19:36:12 +02:00
>new m2.m3.c() : x.c
>m2.m3.c : typeof x.c
>m2.m3 : typeof m2.m3
>m2 : typeof m2
>m3 : typeof m2.m3
>c : typeof x.c
2014-08-15 23:33:16 +02:00