8 lines
438 B
Plaintext
8 lines
438 B
Plaintext
==== tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts (3 errors) ====
|
|
var f: (x: 'hi') => number = ('hi') => { return 1; };
|
|
~~
|
|
!!! ';' expected.
|
|
~~~~~~
|
|
!!! A 'return' statement can only be used within a function body.
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! Specialized overload signature is not assignable to any non-specialized signature. |