/third_party/typescript/tests/baselines/reference/ |
D | classAbstractOverloads.errors.txt | 1 …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 …]
|
D | abstractPropertyNegative.errors.txt | 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 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 7 …PropertyNegative.ts(15,5): error TS1244: Abstract methods can only appear within an abstract class. 16 …/abstractPropertyNegative.ts(38,18): error TS2676: Accessors must both be abstract or non-abstract. 17 …r/abstractPropertyNegative.ts(39,9): error TS2676: Accessors must both be abstract or non-abstract. 18 …r/abstractPropertyNegative.ts(40,9): error TS2676: Accessors must both be abstract or non-abstract. 19 …/abstractPropertyNegative.ts(41,18): error TS2676: Accessors must both be abstract or non-abstract. 27 abstract class B implements A { [all …]
|
D | classAbstractMixedWithModifiers.errors.txt | 1 …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 …]
|
D | classAbstractInstantiations2.errors.txt | 1 …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 …]
|
D | classAbstractGeneric.errors.txt | 1 …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 …]
|
D | classAbstractDeclarations.d.errors.txt | 1 …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 …]
|
D | classAbstractInheritance.errors.txt | 1 …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 …]
|
D | mixinAbstractClasses.2.errors.txt | 1 …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 …]
|
D | classAbstractOverloads.js | 2 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 …]
|
D | classAbstractMergedDeclaration.errors.txt | 9 …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 …]
|
D | classAbstractMixedWithModifiers.js | 2 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 …]
|
D | classAbstractUsingAbstractMethods2.errors.txt | 1 …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 …]
|
D | classAbstractProperties.errors.txt | 1 …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 …]
|
D | mixinAbstractClasses.2.types | 7 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 …]
|
D | classAbstractMixedWithModifiers.types | 2 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 …]
|
D | classAbstractOverloads.types | 2 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 …]
|
D | classAbstractProperties.js | 2 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;
|
D | classAbstractMixedWithModifiers.symbols | 2 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 …]
|
D | abstractPropertyNegative.js | 6 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 …]
|
D | classAbstractProperties.types | 2 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;
|
D | abstractPropertyNegative.types | 9 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 …]
|
D | classAbstractInstantiations2.types | 8 abstract class B { 18 abstract bar() : number; 31 var AA: typeof A = BB; // error, AA is not of abstract type. 66 class C extends B { } // error -- not declared abstract 70 abstract class D extends B { } // okay 74 class E extends B { // okay -- implements abstract method 83 abstract class F extends B { 87 abstract foo() : number; 95 abstract class G { 98 abstract qux(x : number) : string; [all …]
|
D | mixinAbstractClasses.js | 6 function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBase… 7 abstract class MixinClass extends baseClass implements Mixin { 18 abstract class AbstractBase { 19 abstract abstractBaseMethod(): void; 67 … function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBa… 71 declare abstract class AbstractBase { 72 abstract abstractBaseMethod(): void; 74 declare const DerivedFromConcrete_base: typeof ConcreteBase & (abstract new (...args: any) => Mixin… 78 declare const DerivedFromAbstract_base: typeof AbstractBase & (abstract new (...args: any) => Mixin…
|
D | classAbstractMergedDeclaration.js | 2 abstract class CM {} 6 abstract class MC {} 8 abstract class CI {} 12 abstract class IC {} 14 abstract class CC1 {} 18 abstract class CC2 {} 20 declare abstract class DCI {} 24 declare abstract class DIC {} 26 declare abstract class DCC1 {} 30 declare abstract class DCC2 {}
|
/third_party/node/deps/npm/node_modules/es-abstract/ |
D | README.md | 1 # es-abstract <sup>[![Version Badge][npm-version-svg]][package-url]</sup> 13 ECMAScript spec abstract operations. 14 …ions of the spec conflict, the default export will be the latest version of the abstract operation. 15 All abstract operations will also be available under an `es5`/`es2015`/`es2016` entry point, and ex… 20 var ES = require('es-abstract'); 30 [package-url]: https://npmjs.org/package/es-abstract 31 [npm-version-svg]: http://versionbadg.es/ljharb/es-abstract.svg 32 [travis-svg]: https://travis-ci.org/ljharb/es-abstract.svg 33 [travis-url]: https://travis-ci.org/ljharb/es-abstract 34 [deps-svg]: https://david-dm.org/ljharb/es-abstract.svg [all …]
|