==== tests/cases/compiler/implicitAnyGenericTypeInference.ts (2 errors) ==== interface Comparer { compareTo(x: T, y: U): U; } var c: Comparer; c = { compareTo: (x, y) => { return y; } }; ~ !!! Parameter 'x' implicitly has an 'any' type. ~ !!! Parameter 'y' implicitly has an 'any' type. var r = c.compareTo(1, '');