Files
tsgo/testdata/baselines/reference/submodule/conformance/classAbstractOverloads.errors.txt

42 lines
1.5 KiB
Plaintext

classAbstractOverloads.ts(7,5): error TS2512: Overload signatures must all be abstract or non-abstract.
classAbstractOverloads.ts(10,14): error TS2512: Overload signatures must all be abstract or non-abstract.
classAbstractOverloads.ts(12,14): error TS2512: Overload signatures must all be abstract or non-abstract.
classAbstractOverloads.ts(15,5): error TS2391: Function implementation is missing or not immediately following the declaration.
classAbstractOverloads.ts(20,14): error TS2516: All declarations of an abstract method must be consecutive.
==== classAbstractOverloads.ts (5 errors) ====
abstract class A {
abstract foo();
abstract foo() : number;
abstract foo();
abstract bar();
bar();
~~~
!!! error TS2512: Overload signatures must all be abstract or non-abstract.
abstract bar();
abstract baz();
~~~
!!! error TS2512: Overload signatures must all be abstract or non-abstract.
baz();
abstract baz();
~~~
!!! error TS2512: Overload signatures must all be abstract or non-abstract.
baz() {}
qux();
~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
}
abstract class B {
abstract foo() : number;
abstract foo();
~~~
!!! error TS2516: All declarations of an abstract method must be consecutive.
x : number;
abstract foo();
abstract foo();
}