32 lines
407 B
Text
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
|
|
|