mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
355 B
TypeScript
20 lines
355 B
TypeScript
// @filename: controlFlowJSClassProperty.js
|
|
// @checkJs: true
|
|
// @strict: true
|
|
// @outdir: dist
|
|
// @declaration: true
|
|
export class C {
|
|
name = "CompileDiagnostic";
|
|
|
|
/**
|
|
* @param {[number, number] | undefined} position
|
|
*/
|
|
constructor(position) {
|
|
if (position) {
|
|
this.position = position;
|
|
}
|
|
}
|
|
}
|
|
var c = new C([1, 2]);
|
|
c.position;
|