2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-08-19 04:56:03 +02:00
|
|
|
>List : List<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|