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

12 lines
172 B
TypeScript
Raw Normal View History

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