mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35704c2f49
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
26 lines
457 B
TypeScript
26 lines
457 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true,false
|
|
// @noEmit: true
|
|
// @filename: test.js
|
|
|
|
// Unlike object literal members, class members are real class-like members, so
|
|
// JSDoc modifiers are still semantically validated under checkJs: @override
|
|
// without a base class errors. With checkJs off, nothing is validated.
|
|
|
|
class NoBase {
|
|
/** @override */
|
|
foo() {
|
|
}
|
|
}
|
|
|
|
class Base {
|
|
foo() {
|
|
}
|
|
}
|
|
|
|
class Derived extends Base {
|
|
/** @override */
|
|
foo() {
|
|
}
|
|
}
|