tests/cases/compiler/typeParameterOrderReversal.ts(6,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/typeParameterOrderReversal.ts(7,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ==== tests/cases/compiler/typeParameterOrderReversal.ts (2 errors) ==== interface X { n: T; } // Only difference here is order of type parameters function uFirst, T>(x: U) { } ~~~~~~~~~~~~~~ !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function tFirst>(x: U) { } ~~~~~~~~~~~~~~ !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var z: X = null; // Both of these should be allowed uFirst(z); tFirst(z);