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

21 lines
1.2 KiB
Plaintext
Raw Normal View History

tests/cases/compiler/overloadOnConstInheritance4.ts(2,29): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
tests/cases/compiler/overloadOnConstInheritance4.ts(5,29): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
tests/cases/compiler/overloadOnConstInheritance4.ts(6,29): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/overloadOnConstInheritance4.ts (3 errors) ====
interface I {
x1(a: number, callback: (x: 'hi') => number);
~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
2014-07-13 01:04:16 +02:00
}
class C implements I {
x1(a: number, callback: (x: 'hi') => number);
~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
2014-07-13 01:04:16 +02:00
x1(a: number, callback: (x: 'hi') => number) {
~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
2014-07-13 01:04:16 +02:00
}
}