26 lines
371 B
Text
26 lines
371 B
Text
=== tests/cases/compiler/moduleAndInterfaceSharingName3.ts ===
|
|
module X {
|
|
>X : any
|
|
|
|
export module Y {
|
|
>Y : any
|
|
|
|
export interface Z { }
|
|
>Z : Z
|
|
}
|
|
export interface Y<T> { }
|
|
>Y : Y<T>
|
|
>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<string>;
|
|
>z2 : X.Y<string>
|
|
>X : any
|
|
>Y : X.Y<T>
|
|
|