TypeScript/tests/baselines/reference/moduleAndInterfaceSharingName3.types

27 lines
371 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/moduleAndInterfaceSharingName3.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<T> { }
>Y : Y<T>
>T : T
2014-08-15 23:33:16 +02:00
}
var z: X.Y.Z = null;
>z : X.Y.Z
>X : any
>Y : any
>Z : X.Y.Z
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
var z2: X.Y<string>;
>z2 : X.Y<string>
>X : any
>Y : X.Y<T>
2014-08-15 23:33:16 +02:00