//// [constraintReferencingTypeParameterFromSameTypeParameterList.ts] // used to be valid, now an error to do this interface IComparable { } function f>() { } interface I1> { // Error, any does not satisfy the constraint I1 } interface I2 { } interface I4 T> { } // No error interface I3 { method1(); } function foo(v: V) => void>() { } //// [constraintReferencingTypeParameterFromSameTypeParameterList.js] function f() { } function foo() { }