17 lines
271 B
Text
17 lines
271 B
Text
=== 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>
|
|
>T : T
|
|
>null : null
|
|
}
|
|
|
|
|
|
|
|
|
|
|