13 lines
264 B
Text
13 lines
264 B
Text
=== tests/cases/compiler/noConstraintInReturnType1.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
|
|
}
|
|
|