TypeScript/tests/baselines/reference/moduleAndInterfaceSharingName3.types
2014-08-28 12:40:58 -07:00

26 lines
377 B
Plaintext

=== tests/cases/compiler/moduleAndInterfaceSharingName3.ts ===
module X {
>X : unknown
export module Y {
>Y : unknown
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 : unknown
>Y : unknown
>Z : X.Y.Z
var z2: X.Y<string>;
>z2 : X.Y<string>
>X : unknown
>Y : X.Y<T>