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

27 lines
345 B
TypeScript

// @noImplicitOverride: true
// @target: es2015,esnext
class A {
public m1(): number {
return 0;
}
public m2(): number {
return 0;
}
public m3(): void {}
}
class B extends A {
override m1() {
return 10;
}
override m2(): number {
return 30;
}
override m3(): void {}
}