TypeScript/tests/cases/compiler/argumentsReferenceInMethod5_Js.ts

26 lines
299 B
TypeScript

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