TypeScript/tests/cases/conformance/override/override10.ts
Andrew Branch a14b22718a
Enforce keyword order of abstract and override (#43829)
* Enforce keyword order of abstract and override

* Update baselines

* Update existing test
2021-04-28 16:41:28 -07:00

12 lines
229 B
TypeScript

// @declaration: true
// @noImplicitOverride: true
abstract class Base {
abstract foo(): unknown;
abstract bar(): void;
}
abstract class Sub extends Base {
abstract override foo(): number;
bar() { }
}