TypeScript/tests/baselines/reference/internalAliasUninitializedModule.types

36 lines
445 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/internalAliasUninitializedModule.ts ===
module a {
>a : any
2014-08-15 23:33:16 +02:00
export module b {
>b : any
2014-08-15 23:33:16 +02:00
export interface I {
>I : I
2014-08-15 23:33:16 +02:00
foo();
>foo : () => any
2014-08-15 23:33:16 +02:00
}
}
}
module c {
>c : typeof c
2014-08-15 23:33:16 +02:00
import b = a.b;
>b : any
>a : any
>b : any
2014-08-15 23:33:16 +02:00
export var x: b.I;
>x : b.I
>b : any
>I : b.I
2014-08-15 23:33:16 +02:00
x.foo();
>x.foo() : any
>x.foo : () => any
>x : b.I
>foo : () => any
2014-08-15 23:33:16 +02:00
}