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