2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/internalAliasInitializedModule.ts ===
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module c {
|
2014-08-28 21:40:58 +02:00
|
|
|
>c : typeof c
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import b = a.b;
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof b
|
2014-08-19 04:56:03 +02:00
|
|
|
>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
|
|
|
}
|