TypeScript/tests/baselines/reference/namespaces2.types

25 lines
360 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/namespaces2.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
}
}
var c: A.B.C = new A.B.C();
2014-08-25 19:36:12 +02:00
>c : A.B.C
2014-08-28 21:40:58 +02:00
>A : unknown
>B : unknown
2014-08-25 19:36:12 +02:00
>C : A.B.C
>new A.B.C() : A.B.C
>A.B.C : typeof A.B.C
>A.B : typeof A.B
2014-08-15 23:33:16 +02:00
>A : typeof A
2014-08-25 19:36:12 +02:00
>B : typeof A.B
>C : typeof A.B.C
2014-08-15 23:33:16 +02:00