TypeScript/tests/baselines/reference/cloduleAcrossModuleDefinitions.types

32 lines
398 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/cloduleAcrossModuleDefinitions.ts ===
module A {
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
export class B {
>B : B
foo() { }
>foo : () => void
static bar() { }
2014-08-25 19:36:12 +02:00
>bar : () => void
2014-08-15 23:33:16 +02:00
}
}
module A {
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
export module B {
2014-08-28 21:40:58 +02:00
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
}
}
var b: A.B; // ok
2014-08-25 19:36:12 +02:00
>b : A.B
2014-08-28 21:40:58 +02:00
>A : unknown
2014-08-25 19:36:12 +02:00
>B : A.B
2014-08-15 23:33:16 +02:00