25 lines
337 B
Text
25 lines
337 B
Text
=== tests/cases/compiler/moduleAndInterfaceSharingName.ts ===
|
|
module X {
|
|
>X : any
|
|
|
|
export module Y {
|
|
>Y : any
|
|
|
|
export interface Z { }
|
|
>Z : Z
|
|
}
|
|
export interface Y { }
|
|
>Y : Y
|
|
}
|
|
var z: X.Y.Z = null;
|
|
>z : X.Y.Z
|
|
>X : any
|
|
>Y : any
|
|
>Z : X.Y.Z
|
|
>null : null
|
|
|
|
var z2: X.Y;
|
|
>z2 : X.Y
|
|
>X : any
|
|
>Y : X.Y
|
|
|