mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
398 B
TypeScript
30 lines
398 B
TypeScript
//// [tests/cases/compiler/argumentsReferenceInMethod2_Js.ts] ////
|
|
|
|
//// [a.js]
|
|
class A {
|
|
/**
|
|
* @param {object} [foo={}]
|
|
*/
|
|
m(foo = {}) {
|
|
/**
|
|
* @type object
|
|
*/
|
|
this["arguments"] = foo;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [a.d.ts]
|
|
declare class A {
|
|
/**
|
|
* @type object
|
|
*/
|
|
"arguments": object;
|
|
/**
|
|
* @param {object} [foo={}]
|
|
*/
|
|
m(foo?: object): void;
|
|
}
|