TypeScript/tests/baselines/reference/genericClassesInModule.types

23 lines
320 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericClassesInModule.ts ===
module Foo {
>Foo : typeof Foo
export class B<T>{ }
>B : B<T>
>T : T
export class A { }
>A : A
}
var a = new Foo.B<Foo.A>();
>a : B<A>
>new Foo.B<Foo.A>() : B<A>
>Foo.B : typeof B
>Foo : typeof Foo
>B : typeof B
>Foo : Foo
>A : A