TypeScript/tests/baselines/reference/constraintsUsedInPrototypeProperty.types

13 lines
298 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/constraintsUsedInPrototypeProperty.ts ===
class Foo<T extends number, U, V extends string> { }
>Foo : Foo<T, U, V>
>T : T
>U : U
>V : V
2014-08-15 23:33:16 +02:00
Foo.prototype; // Foo<any, any, any>
>Foo.prototype : Foo<any, any, any>
>Foo : typeof Foo
>prototype : Foo<any, any, any>
2014-08-15 23:33:16 +02:00