=== 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
}

