Home
last modified time | relevance | path

Searched refs:abstract (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/third_party/typescript/tests/baselines/reference/
DclassAbstractOverloads.errors.txt1 …sAbstractOverloads.ts(7,5): error TS2512: Overload signatures must all be abstract or non-abstract.
2 …bstractOverloads.ts(10,14): error TS2512: Overload signatures must all be abstract or non-abstract.
3 …bstractOverloads.ts(12,14): error TS2512: Overload signatures must all be abstract or non-abstract.
5 …/classAbstractOverloads.ts(20,14): error TS2516: All declarations of an abstract method must be co…
9 abstract class A {
10 abstract foo();
11 abstract foo() : number;
12 abstract foo();
14 abstract bar();
17 !!! error TS2512: Overload signatures must all be abstract or non-abstract.
[all …]
DabstractPropertyNegative.errors.txt2 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab…
3 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab…
4 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab…
5 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab…
6 …PropertyNegative.ts(15,5): error TS1244: Abstract methods can only appear within an abstract class.
15 …/abstractPropertyNegative.ts(38,18): error TS2676: Accessors must both be abstract or non-abstract.
16 …r/abstractPropertyNegative.ts(39,9): error TS2676: Accessors must both be abstract or non-abstract.
17 …r/abstractPropertyNegative.ts(40,9): error TS2676: Accessors must both be abstract or non-abstract.
18 …/abstractPropertyNegative.ts(41,18): error TS2676: Accessors must both be abstract or non-abstract.
26 abstract class B implements A {
[all …]
DclassAbstractMixedWithModifiers.errors.txt1 …edWithModifiers.ts(6,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
2 …tractMixedWithModifiers.ts(8,14): error TS1029: 'public' modifier must precede 'abstract' modifier.
3 …ctMixedWithModifiers.ts(9,14): error TS1029: 'protected' modifier must precede 'abstract' modifier.
4 …dWithModifiers.ts(10,14): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
5 …edWithModifiers.ts(12,14): error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
6 …edWithModifiers.ts(13,12): error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
7 …xedWithModifiers.ts(15,14): error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
8 …ixedWithModifiers.ts(16,5): error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
12 abstract class A {
13 abstract foo_a();
[all …]
DclassAbstractInstantiations2.errors.txt1 …lassAbstractInstantiations2.ts(10,1): error TS2511: Cannot create an instance of an abstract class.
3 Cannot assign an abstract constructor type to a non-abstract constructor type.
4 …lassAbstractInstantiations2.ts(17,5): error TS2511: Cannot create an instance of an abstract class.
5 …lassAbstractInstantiations2.ts(21,1): error TS2511: Cannot create an instance of an abstract class.
7 …ractInstantiations2.ts(26,7): error TS2515: Non-abstract class 'C' does not implement inherited ab…
9 …ctInstantiations2.ts(46,5): error TS2512: Overload signatures must all be abstract or non-abstract.
10 …tInstantiations2.ts(50,5): error TS1244: Abstract methods can only appear within an abstract class.
18 abstract class B {
20 abstract bar() : number;
25 !!! error TS2511: Cannot create an instance of an abstract class.
[all …]
DclassAbstractGeneric.errors.txt1 …assAbstractGeneric.ts(10,7): error TS2515: Non-abstract class 'C<T>' does not implement inherited
2 …assAbstractGeneric.ts(10,7): error TS2515: Non-abstract class 'C<T>' does not implement inherited
3 …lassAbstractGeneric.ts(12,7): error TS2515: Non-abstract class 'D' does not implement inherited ab…
4 …lassAbstractGeneric.ts(12,7): error TS2515: Non-abstract class 'D' does not implement inherited ab…
5 …assAbstractGeneric.ts(14,7): error TS2515: Non-abstract class 'E<T>' does not implement inherited
6 …assAbstractGeneric.ts(18,7): error TS2515: Non-abstract class 'F<T>' does not implement inherited
10 abstract class A<T> {
13 abstract foo(): T;
14 abstract bar(t: T);
17 abstract class B<T> extends A<T> {}
[all …]
DclassAbstractDeclarations.d.errors.txt1 …lassAbstractKeyword/classAbstractDeclarations.d.ts(2,5): error TS1242: 'abstract' modifier can onl…
3 …ractDeclarations.d.ts(11,15): error TS2515: Non-abstract class 'CC' does not implement inherited a…
4 …ractDeclarations.d.ts(13,15): error TS2515: Non-abstract class 'DD' does not implement inherited a…
5 …ractDeclarations.d.ts(17,15): error TS2515: Non-abstract class 'FF' does not implement inherited a…
9 declare abstract class A {
10 abstract constructor() {}
12 !!! error TS1242: 'abstract' modifier can only appear on a class, method, or property declaration.
17 declare abstract class AA {
18 abstract foo();
21 declare abstract class BB extends AA {}
[all …]
DclassAbstractInheritance.errors.txt1 …AbstractInheritance.ts(13,7): error TS2515: Non-abstract class 'CC' does not implement inherited a…
2 …AbstractInheritance.ts(15,7): error TS2515: Non-abstract class 'DD' does not implement inherited a…
3 …AbstractInheritance.ts(19,7): error TS2515: Non-abstract class 'FF' does not implement inherited a…
7 abstract class A {}
9 abstract class B extends A {}
13 abstract class AA {
14 abstract foo();
17 abstract class BB extends AA {}
21 !!! error TS2515: Non-abstract class 'CC' does not implement inherited abstract member 'foo' from c…
25 !!! error TS2515: Non-abstract class 'DD' does not implement inherited abstract member 'foo' from c…
[all …]
DmixinAbstractClasses.2.errors.txt1 …at extends from a type variable containing an abstract construct signature must also be declared '
2 …tClasses.2.ts(21,7): error TS2515: Non-abstract class 'DerivedFromAbstract' does not implement inh…
3 …sses/mixinAbstractClasses.2.ts(25,1): error TS2511: Cannot create an instance of an abstract class.
11 …function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBas…
12 …at extends from a type variable containing an abstract construct signature must also be declared '
15 …at extends from a type variable containing an abstract construct signature must also be declared '
22 abstract class AbstractBase {
23 abstract abstractBaseMethod(): void;
28 …// error expected: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract
31 !!! error TS2515: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract me…
[all …]
DclassAbstractOverloads.js2 abstract class A {
3 abstract foo();
4 abstract foo() : number;
5 abstract foo();
7 abstract bar();
9 abstract bar();
11 abstract baz();
13 abstract baz();
19 abstract class B {
20 abstract foo() : number;
[all …]
Doverride2.js2 abstract class AB {
3 abstract foo(v: string): void;
5 abstract bar(v: string): void;
6 abstract baz(v: string): void;
9 abstract class AD1 extends AB {
13 abstract class AD2 extends AB {
14 abstract foo(v: ''): void // need override?
17 abstract class AD3 extends AB {
19 abstract bar(): void;
86 declare abstract class AB {
[all …]
DclassAbstractMixedWithModifiers.js2 abstract class A {
3 abstract foo_a();
5 public abstract foo_b();
6 protected abstract foo_c();
7 private abstract foo_d();
9 abstract public foo_bb();
10 abstract protected foo_cc();
11 abstract private foo_dd();
13 abstract static foo_d();
14 static abstract foo_e();
[all …]
DclassAbstractMergedDeclaration.errors.txt9 …ssAbstractMergedDeclaration.ts(31,1): error TS2511: Cannot create an instance of an abstract class.
10 …ssAbstractMergedDeclaration.ts(32,1): error TS2511: Cannot create an instance of an abstract class.
11 …ssAbstractMergedDeclaration.ts(33,1): error TS2511: Cannot create an instance of an abstract class.
12 …ssAbstractMergedDeclaration.ts(34,1): error TS2511: Cannot create an instance of an abstract class.
13 …ssAbstractMergedDeclaration.ts(35,1): error TS2511: Cannot create an instance of an abstract class.
14 …ssAbstractMergedDeclaration.ts(37,1): error TS2511: Cannot create an instance of an abstract class.
15 …ssAbstractMergedDeclaration.ts(38,1): error TS2511: Cannot create an instance of an abstract class.
16 …ssAbstractMergedDeclaration.ts(39,1): error TS2511: Cannot create an instance of an abstract class.
20 abstract class CM {}
24 abstract class MC {}
[all …]
DclassAbstractUsingAbstractMethods2.errors.txt1 …gAbstractMethods2.ts(2,5): error TS1244: Abstract methods can only appear within an abstract class.
2 …singAbstractMethods2.ts(5,7): error TS2515: Non-abstract class 'B' does not implement inherited ab…
3 …ingAbstractMethods2.ts(21,7): error TS2515: Non-abstract class 'BB' does not implement inherited a…
8 abstract foo();
10 !!! error TS1244: Abstract methods can only appear within an abstract class.
15 !!! error TS2515: Non-abstract class 'B' does not implement inherited abstract member 'foo' from cl…
17 abstract class C extends A {}
23 abstract class E extends A {
27 abstract class AA {
28 abstract foo();
[all …]
DclassAbstractProperties.errors.txt1 …tractProperties.ts(5,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
2 …ractProperties.ts(12,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
6 abstract class A {
7 abstract x : number;
8 public abstract y : number;
9 protected abstract z : number;
10 private abstract w : number;
12 !!! error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
14 abstract m: () => void;
16 abstract foo_x() : number;
[all …]
Doverride5.js34 abstract class AB {
35 abstract f (): void;
36 abstract b (): void;
39 abstract class AD extends AB {
40 override abstract f(): void;
41 abstract override b(): void;
44 abstract class AND {
45 override abstract f(): void;
46 abstract override b(): void;
142 declare abstract class AB {
[all …]
Doverride7.js31 abstract class AB {
32 abstract f (): void;
33 abstract b (): void;
36 abstract class AD extends AB {
37 override abstract f(): void;
38 abstract override b(): void;
41 abstract class AND {
42 override abstract f(): void;
43 abstract override b(): void;
136 declare abstract class AB {
[all …]
DmixinAbstractClasses.2.types7 function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBase…
8 >Mixin : <TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass) => TBaseCla…
13 …at extends from a type variable containing an abstract construct signature must also be declared '
26 abstract class AbstractBase {
29 abstract abstractBaseMethod(): void;
34 >MixedBase : typeof AbstractBase & (abstract new (...args: any) => Mixin)
35 >Mixin(AbstractBase) : typeof AbstractBase & (abstract new (...args: any) => Mixin)
36 >Mixin : <TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass) => TBaseCla…
39 // error expected: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract m…
45 // error expected: Cannot create an instance of an abstract class.
[all …]
DclassAbstractMixedWithModifiers.types2 abstract class A {
5 abstract foo_a();
8 public abstract foo_b();
11 protected abstract foo_c();
14 private abstract foo_d();
17 abstract public foo_bb();
20 abstract protected foo_cc();
23 abstract private foo_dd();
26 abstract static foo_d();
29 static abstract foo_e();
[all …]
DclassAbstractOverloads.types2 abstract class A {
5 abstract foo();
8 abstract foo() : number;
11 abstract foo();
14 abstract bar();
20 abstract bar();
23 abstract baz();
29 abstract baz();
39 abstract class B {
42 abstract foo() : number;
[all …]
DclassAbstractProperties.js2 abstract class A {
3 abstract x : number;
4 public abstract y : number;
5 protected abstract z : number;
6 private abstract w : number;
8 abstract m: () => void;
10 abstract foo_x() : number;
11 public abstract foo_y() : number;
12 protected abstract foo_z() : number;
13 private abstract foo_w() : number;
DclassAbstractMixedWithModifiers.symbols2 abstract class A {
5 abstract foo_a();
8 public abstract foo_b();
11 protected abstract foo_c();
14 private abstract foo_d();
17 abstract public foo_bb();
20 abstract protected foo_cc();
23 abstract private foo_dd();
26 abstract static foo_d();
29 static abstract foo_e();
[all …]
DabstractPropertyNegative.js6 abstract class B implements A {
7 abstract prop: string;
8 public abstract readonly ro: string;
9 abstract get readonlyProp(): string;
10 abstract m(): string;
11 abstract get mismatch(): string;
12 abstract set mismatch(val: number); // error, not same type
16 abstract notAllowed: string; field in C
22 abstract class WrongTypeProperty {
23 abstract num: number;
[all …]
Doverride2.errors.txt1 …6: This member must have an 'override' modifier because it overrides an abstract method that is de…
2 …6: This member must have an 'override' modifier because it overrides an abstract method that is de…
6 abstract class AB {
7 abstract foo(v: string): void;
9 abstract bar(v: string): void;
10 abstract baz(v: string): void;
13 abstract class AD1 extends AB {
17 abstract class AD2 extends AB {
18 abstract foo(v: ''): void // need override?
20 !!! error TS4116: This member must have an 'override' modifier because it overrides an abstract met…
[all …]
DclassAbstractProperties.types2 abstract class A {
5 abstract x : number;
8 public abstract y : number;
11 protected abstract z : number;
14 private abstract w : number;
17 abstract m: () => void;
20 abstract foo_x() : number;
23 public abstract foo_y() : number;
26 protected abstract foo_z() : number;
29 private abstract foo_w() : number;
DabstractPropertyNegative.types9 abstract class B implements A {
12 abstract prop: string;
15 public abstract readonly ro: string;
18 abstract get readonlyProp(): string;
21 abstract m(): string;
24 abstract get mismatch(): string;
27 abstract set mismatch(val: number); // error, not same type
39 abstract notAllowed: string;
57 abstract class WrongTypeProperty {
60 abstract num: number;
[all …]

12345678910>>...28