TypeScript/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types

52 lines
854 B
Plaintext
Raw Normal View History

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