TypeScript/tests/baselines/reference/genericCloduleInModule.types

35 lines
479 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericCloduleInModule.ts ===
module A {
>A : typeof A
2014-08-15 23:33:16 +02:00
export class B<T> {
>B : B<T>
>T : T
2014-08-15 23:33:16 +02:00
foo() { }
>foo : () => void
2014-08-15 23:33:16 +02:00
static bar() { }
>bar : () => void
2014-08-15 23:33:16 +02:00
}
export module B {
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
}
var b: A.B<number>;
>b : A.B<number>
>A : any
>B : A.B<T>
2014-08-15 23:33:16 +02:00
b.foo();
>b.foo() : void
>b.foo : () => void
>b : A.B<number>
>foo : () => void
2014-08-15 23:33:16 +02:00