TypeScript/tests/cases/compiler/argumentsReferenceInConstructor2_Js.ts

19 lines
247 B
TypeScript

// @declaration: true
// @allowJs: true
// @emitDeclarationOnly: true
// @filename: /a.js
class A {
/**
* Constructor
*
* @param {object} [foo={}]
*/
constructor(foo = {}) {
/**
* @type object
*/
this["arguments"] = foo;
}
}