10 lines
552 B
Plaintext
10 lines
552 B
Plaintext
|
==== tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts (2 errors) ====
|
||
|
interface I {
|
||
|
x1(a: number, callback: (x: 'hi') => number);
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|
||
|
}
|
||
|
|
||
|
var i2: I = { x1: (a: number, cb: (x: 'hi') => number) => { } }; // error
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|