32 lines
398 B
Plaintext
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
|
|
|