TypeScript/tests/baselines/reference/cloduleAcrossModuleDefinitions.types
2015-04-15 16:44:20 -07:00

32 lines
407 B
Text

=== 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
>1 : number
}
}
var b: A.B; // ok
>b : A.B
>A : any
>B : A.B