==== tests/cases/compiler/typeParameterHasSelfAsConstraint.ts (2 errors) ==== function foo(x: T): number { ~~~~~~~~~~~ !!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return x; ~ !!! Type 'T' is not assignable to type 'number'. }