TypeScript/tests/baselines/reference/genericCloduleInModule.types
2015-04-15 16:44:20 -07:00

35 lines
479 B
Plaintext

=== 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