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

26 lines
353 B
TypeScript
Raw Normal View History

// @noImplicitOverride: true
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: a.js
class B {
foo (v) {}
fooo (v) {}
}
class D extends B {
foo (v) {}
/** @override */
fooo (v) {}
/** @override */
bar(v) {}
}
class C {
foo () {}
/** @override */
fooo (v) {}
/** @override */
bar(v) {}
}