32 lines
388 B
Plaintext
32 lines
388 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 : B
|
|
>A : A
|
|
>B : B
|
|
|