TypeScript/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.types

28 lines
435 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts ===
export module a {
2014-08-28 21:40:58 +02:00
>a : typeof a
2014-08-15 23:33:16 +02:00
export module b {
2014-08-28 21:40:58 +02:00
>b : typeof b
2014-08-15 23:33:16 +02:00
export class c {
>c : c
}
}
}
export import b = a.b;
2014-08-28 21:40:58 +02:00
>b : typeof b
>a : typeof a
2014-08-15 23:33:16 +02:00
>b : typeof b
export var x: b.c = new b.c();
2014-08-25 19:36:12 +02:00
>x : b.c
2014-08-28 21:40:58 +02:00
>b : unknown
2014-08-25 19:36:12 +02:00
>c : b.c
>new b.c() : b.c
>b.c : typeof b.c
2014-08-15 23:33:16 +02:00
>b : typeof b
2014-08-25 19:36:12 +02:00
>c : typeof b.c
2014-08-15 23:33:16 +02:00