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

10 lines
602 B
Plaintext
Raw Normal View History

tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts(1,8): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts(1,37): error TS1005: ';' expected.
==== tests/cases/compiler/overloadOnConstAsTypeAnnotation.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
var f: (x: 'hi') => number = ('hi') => { return 1; };
~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
~~
!!! error TS1005: ';' expected.