2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericConstraintDeclaration.ts ===
|
|
|
|
class List<T extends {}>{
|
2015-04-13 23:01:57 +02:00
|
|
|
>List : List<T>, Symbol(List, Decl(genericConstraintDeclaration.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 0, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
static empty<T extends {}>(): List<T>{return null;}
|
2015-04-13 23:01:57 +02:00
|
|
|
>empty : <T extends {}>() => List<T>, Symbol(List.empty, Decl(genericConstraintDeclaration.ts, 0, 25))
|
|
|
|
>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 1, 17))
|
|
|
|
>List : List<T>, Symbol(List, Decl(genericConstraintDeclaration.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 1, 17))
|
2015-04-13 21:36:11 +02:00
|
|
|
>null : null
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|