16 lines
739 B
Text
16 lines
739 B
Text
|
==== tests/cases/compiler/overloadOnConstInheritance4.ts (3 errors) ====
|
||
|
interface I {
|
||
|
x1(a: number, callback: (x: 'hi') => number);
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|
||
|
}
|
||
|
class C implements I {
|
||
|
x1(a: number, callback: (x: 'hi') => number);
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|
||
|
x1(a: number, callback: (x: 'hi') => number) {
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|
||
|
}
|
||
|
}
|
||
|
|