mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
20 lines
340 B
TypeScript
20 lines
340 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: es5
|
|
// @outDir: ./out
|
|
// @declaration: true
|
|
// @filename: index.js
|
|
module.exports = class {
|
|
/**
|
|
* @param {number} p
|
|
*/
|
|
constructor(p) {
|
|
this.t = 12 + p;
|
|
}
|
|
}
|
|
module.exports.Sub = class {
|
|
constructor() {
|
|
this.instance = new module.exports(10);
|
|
}
|
|
}
|