34 lines
479 B
Text
34 lines
479 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
|
|
>1 : number
|
|
}
|
|
}
|
|
|
|
var b: A.B<number>;
|
|
>b : A.B<number>
|
|
>A : any
|
|
>B : A.B<T>
|
|
|
|
b.foo();
|
|
>b.foo() : void
|
|
>b.foo : () => void
|
|
>b : A.B<number>
|
|
>foo : () => void
|
|
|