mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
19 lines
282 B
TypeScript
19 lines
282 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: es5
|
|
// @outDir: ./out
|
|
// @declaration: true
|
|
// @filename: index.js
|
|
class A {
|
|
member = new Q();
|
|
}
|
|
class Q {
|
|
x = 42;
|
|
}
|
|
module.exports = class Q {
|
|
constructor() {
|
|
this.x = new A();
|
|
}
|
|
}
|
|
module.exports.Another = Q;
|