14 lines
421 B
Text
14 lines
421 B
Text
|
==== tests/cases/compiler/implicitAnyFunctionOverloadWithImplicitAnyReturnType.ts (1 errors) ====
|
||
|
// this should be an error
|
||
|
interface IFace {
|
||
|
funcOfIFace(); // error at "f"
|
||
|
~~~~~~~~~~~~~~
|
||
|
!!! 'funcOfIFace', which lacks return-type annotation, implicitly has an 'any' return type.
|
||
|
}
|
||
|
|
||
|
// this should not be an error
|
||
|
interface IFace1{
|
||
|
f1(): any;
|
||
|
}
|
||
|
|
||
|
|