=== tests/cases/compiler/moduleAndInterfaceSharingName3.ts === module X { >X : any export module Y { >Y : any export interface Z { } >Z : Z } export interface Y { } >Y : Y >T : T } 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