Files
tsgo/testdata/baselines/reference/submodule/compiler/FunctionDeclaration4.errors.txt

11 lines
507 B
Plaintext

FunctionDeclaration4.ts(1,10): error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type.
FunctionDeclaration4.ts(2,10): error TS2389: Function implementation name must be 'foo'.
==== FunctionDeclaration4.ts (2 errors) ====
function foo();
~~~
!!! error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type.
function bar() { }
~~~
!!! error TS2389: Function implementation name must be 'foo'.