swc/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.ts
2023-04-24 14:59:19 +00:00

24 lines
501 B
TypeScript

// @checkJs: true
// @strict: true
// @emitDeclarationOnly: true
// @declaration: true
// @Filename: thisPropertyAssignmentInherited.js
export class Element {
/**
* @returns {String}
*/
get textContent() {
return ''
}
set textContent(x) {}
cloneNode() { return this}
}
export class HTMLElement extends Element {}
export class TextElement extends HTMLElement {
get innerHTML() { return this.textContent; }
set innerHTML(html) { this.textContent = html; }
toString() {
}
}