f1a2e41a8a
This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
10 lines
602 B
Plaintext
10 lines
602 B
Plaintext
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) ====
|
|
var f: (x: 'hi') => number = ('hi') => { return 1; };
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
|
|
~~
|
|
!!! error TS1005: ';' expected. |