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

19 lines
351 B
TypeScript

// @allowJs: true
// @checkJs: true
// @outDir: /out
// @lib: es6
// @declaration: true
// @filename: index.js
export class Super {
/**
* @param {string} firstArg
* @param {string} secondArg
*/
constructor(firstArg, secondArg) { }
}
export class Sub extends Super {
constructor() {
super('first', 'second');
}
}