TypeScript/tests/baselines/reference/implicitAnyGenericTypeInference.errors.txt

13 lines
422 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/implicitAnyGenericTypeInference.ts (2 errors) ====
interface Comparer<T> {
compareTo<U>(x: T, y: U): U;
}
var c: Comparer<any>;
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, '');