TypeScript/tests/baselines/reference/namespaces1.types

26 lines
300 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/namespaces1.ts ===
module X {
>X : any
2014-08-15 23:33:16 +02:00
export module Y {
>Y : any
2014-08-15 23:33:16 +02:00
export interface Z { }
>Z : Z
2014-08-15 23:33:16 +02:00
}
export interface Y { }
>Y : Y
2014-08-15 23:33:16 +02:00
}
var x: X.Y.Z;
>x : X.Y.Z
>X : any
>Y : any
>Z : X.Y.Z
2014-08-15 23:33:16 +02:00
var x2: X.Y;
>x2 : X.Y
>X : any
>Y : X.Y
2014-08-15 23:33:16 +02:00