TypeScript/tests/baselines/reference/importOnAliasedIdentifiers.types

34 lines
500 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/importOnAliasedIdentifiers.ts ===
module A {
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
export interface X { s: string }
>X : X
>s : string
export var X: X;
>X : X
>X : X
}
module B {
2014-08-28 21:40:58 +02:00
>B : typeof B
2014-08-15 23:33:16 +02:00
interface A { n: number }
>A : A
>n : number
import Y = A; // Alias only for module A
2014-08-28 21:40:58 +02:00
>Y : typeof Y
2014-08-25 19:36:12 +02:00
>A : typeof Y
2014-08-15 23:33:16 +02:00
import Z = A.X; // Alias for both type and member A.X
2014-08-28 21:40:58 +02:00
>Z : Y.X
2014-08-25 19:36:12 +02:00
>A : typeof Y
>X : Y.X
2014-08-15 23:33:16 +02:00
var v: Z = Z;
2014-08-25 19:36:12 +02:00
>v : Y.X
>Z : Y.X
>Z : Y.X
2014-08-15 23:33:16 +02:00
}