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

17 lines
625 B
Plaintext
Raw Normal View History

tests/cases/compiler/implicitAnyFunctionOverloadWithImplicitAnyReturnType.ts(3,5): error TS7010: 'funcOfIFace', which lacks return-type annotation, implicitly has an 'any' return type.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/implicitAnyFunctionOverloadWithImplicitAnyReturnType.ts (1 errors) ====
// this should be an error
interface IFace {
funcOfIFace(); // error at "f"
~~~~~~~~~~~~~~
!!! error TS7010: 'funcOfIFace', which lacks return-type annotation, implicitly has an 'any' return type.
2014-07-13 01:04:16 +02:00
}
// this should not be an error
interface IFace1{
f1(): any;
}