2014-09-12 22:35:07 +02:00
tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts(1,37): error TS1005: ';' expected.
tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts(1,8): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
2014-11-20 00:30:35 +01:00
==== tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
var f: (x: 'hi') => number = ('hi') => { return 1; };
~~
2014-09-12 00:19:57 +02:00
!!! error TS1005: ';' expected.
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.