33 lines
470 B
Text
33 lines
470 B
Text
=== tests/cases/compiler/genericCloduleInModule.ts ===
|
|
module A {
|
|
>A : typeof A
|
|
|
|
export class B<T> {
|
|
>B : B<T>
|
|
>T : T
|
|
|
|
foo() { }
|
|
>foo : () => void
|
|
|
|
static bar() { }
|
|
>bar : () => void
|
|
}
|
|
export module B {
|
|
>B : typeof B
|
|
|
|
export var x = 1;
|
|
>x : number
|
|
}
|
|
}
|
|
|
|
var b: A.B<number>;
|
|
>b : A.B<number>
|
|
>A : unknown
|
|
>B : A.B<T>
|
|
|
|
b.foo();
|
|
>b.foo() : void
|
|
>b.foo : () => void
|
|
>b : A.B<number>
|
|
>foo : () => void
|
|
|