2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericCloduleInModule.ts ===
|
|
|
|
module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class B<T> {
|
|
|
|
>B : B<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
foo() { }
|
|
|
|
>foo : () => void
|
|
|
|
|
|
|
|
static bar() { }
|
2014-08-25 19:36:12 +02:00
|
|
|
>bar : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
export module B {
|
2014-08-28 21:40:58 +02:00
|
|
|
>B : typeof B
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var x = 1;
|
|
|
|
>x : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var b: A.B<number>;
|
2014-08-25 19:36:12 +02:00
|
|
|
>b : A.B<number>
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>B : A.B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b.foo();
|
|
|
|
>b.foo() : void
|
|
|
|
>b.foo : () => void
|
2014-08-25 19:36:12 +02:00
|
|
|
>b : A.B<number>
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo : () => void
|
|
|
|
|