swc/crates/swc_ecma_parser/tests/tsc/override10.ts

12 lines
218 B
TypeScript
Raw Normal View History

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