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

12 lines
172 B
TypeScript

// @target: esnext,es2015
// @noImplicitOverride: true
// @useDefineForClassFields: true
class A {
foo?: string;
}
class B extends A {
override foo = "string";
}