mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
410 B
Plaintext
14 lines
410 B
Plaintext
genericConstraintDeclaration.ts(2,43): error TS2322: Type 'null' is not assignable to type 'List<T>'.
|
|
|
|
|
|
==== genericConstraintDeclaration.ts (1 errors) ====
|
|
class List<T extends {}>{
|
|
static empty<T extends {}>(): List<T>{return null;}
|
|
~~~~~~
|
|
!!! error TS2322: Type 'null' is not assignable to type 'List<T>'.
|
|
}
|
|
|
|
|
|
|
|
|
|
|