==== tests/cases/compiler/primitiveConstraints1.ts (2 errors) ==== function foo1(t: T, u: U) { } ~~~~~~~~~~~ !!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo1('hm', 1); // no error function foo2(t: T, u: U) { } ~~~~~~~~~~~ !!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo2(1, 'hm'); // error