mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
537 B
Plaintext
13 lines
537 B
Plaintext
FunctionDeclaration6.ts(2,14): error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type.
|
|
FunctionDeclaration6.ts(3,14): error TS2389: Function implementation name must be 'foo'.
|
|
|
|
|
|
==== FunctionDeclaration6.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'.
|
|
} |