swc/crates/swc_ecma_parser/tests/tsc/override3.ts
2022-02-04 17:08:38 +09:00

27 lines
410 B
TypeScript

// @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 {}
}