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

8 lines
480 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts (3 errors) ====
var f: (x: 'hi') => number = ('hi') => { return 1; };
~~
!!! error TS1005: ';' expected.
~~~~~~
!!! error TS1108: A 'return' statement can only be used within a function body.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.