TypeScript/tests/baselines/reference/genericConstraintDeclaration.types

17 lines
257 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericConstraintDeclaration.ts ===
class List<T extends {}>{
>List : List<T>
>T : T
static empty<T extends {}>(): List<T>{return null;}
>empty : <T extends {}>() => List<T>
>T : T
>List : List<T>
2014-08-15 23:33:16 +02:00
>T : T
}