TypeScript/tests/baselines/reference/cloduleAcrossModuleDefinitions.types
2014-08-28 12:40:58 -07:00

32 lines
398 B
Plaintext

=== tests/cases/compiler/cloduleAcrossModuleDefinitions.ts ===
module A {
>A : typeof A
export class B {
>B : B
foo() { }
>foo : () => void
static bar() { }
>bar : () => void
}
}
module A {
>A : typeof A
export module B {
>B : typeof B
export var x = 1;
>x : number
}
}
var b: A.B; // ok
>b : A.B
>A : unknown
>B : A.B