2014-09-12 22:35:07 +02:00
tests/cases/compiler/noImplicitAnyWithOverloads.ts(2,5): error TS7008: Member 'foo' implicitly has an 'any' type.
2015-03-05 03:15:55 +01:00
tests/cases/compiler/noImplicitAnyWithOverloads.ts(6,10): error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
tests/cases/compiler/noImplicitAnyWithOverloads.ts(7,10): error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/noImplicitAnyWithOverloads.ts(8,16): error TS7006: Parameter 'a' implicitly has an 'any' type.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/noImplicitAnyWithOverloads.ts (4 errors) ====
interface A {
foo;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS7008: Member 'foo' implicitly has an 'any' type.
2014-07-13 01:04:16 +02:00
}
interface B { }
function callb(lam: (l: A) => void);
2015-03-05 03:15:55 +01:00
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
2014-07-13 01:04:16 +02:00
function callb(lam: (n: B) => void);
2015-03-05 03:15:55 +01:00
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
2014-07-13 01:04:16 +02:00
function callb(a) { }
~
2014-09-12 00:19:57 +02:00
!!! error TS7006: Parameter 'a' implicitly has an 'any' type.
2014-07-13 01:04:16 +02:00
callb((a) => { a.foo; }); // error, chose first overload