TypeScript/tests/baselines/reference/exportImportNonInstantiatedModule.types

28 lines
366 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportImportNonInstantiatedModule.ts ===
module A {
>A : any
2014-08-15 23:33:16 +02:00
export interface I { x: number }
>I : I
>x : number
2014-08-15 23:33:16 +02:00
}
module B {
>B : typeof B
2014-08-15 23:33:16 +02:00
export import A1 = A
>A1 : any
>A : any
2014-08-15 23:33:16 +02:00
}
var x: B.A1.I = { x: 1 };
>x : A.I
>B : any
>A1 : any
>I : A.I
2014-08-15 23:33:16 +02:00
>{ x: 1 } : { x: number; }
>x : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00