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

27 lines
410 B
TypeScript
Raw Normal View History

// @declaration: true
// @noImplicitOverride: true
declare class B {
foo(): void
bar(): void
}
declare class D extends B {
foo (): void;
override bar (): void;
}
class DB extends B {
override foo(): void {}
override bar(): void {}
}
class DD extends D {
override foo(): void {}
override bar(): void {}
}
class EB extends D {
foo(): void {}
override bar(): void {}
}