mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
16 lines
320 B
TypeScript
16 lines
320 B
TypeScript
// @allowjs: true
|
|
// @checkjs: true
|
|
// @outdir: salsa
|
|
// @declaration: true
|
|
// @filename: privateConstructorFunction.js
|
|
{
|
|
// make sure not to crash when parent's a block rather than a source file or some other
|
|
// symbol-having node.
|
|
|
|
/** @private */
|
|
function C() {
|
|
this.x = 1
|
|
}
|
|
new C()
|
|
}
|