TypeScript/tests/baselines/reference/noImplicitAnyWithOverloads.errors.txt
2014-07-12 17:30:19 -07:00

18 lines
702 B
Plaintext

==== tests/cases/compiler/noImplicitAnyWithOverloads.ts (4 errors) ====
interface A {
foo;
~~~~
!!! Member 'foo' implicitly has an 'any' type.
}
interface B { }
function callb(lam: (l: A) => void);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
function callb(lam: (n: B) => void);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! 'callb', which lacks return-type annotation, implicitly has an 'any' return type.
function callb(a) { }
~
!!! Parameter 'a' implicitly has an 'any' type.
callb((a) => { a.foo; }); // error, chose first overload