TypeScript/tests/baselines/reference/argumentsReferenceInMethod5_Js.types

46 lines
622 B
Plaintext

=== /a.js ===
const bar = {
>bar : { arguments: {}; }
>{ arguments: {}} : { arguments: {}; }
arguments: {}
>arguments : {}
>{} : {}
}
class A {
>A : A
/**
* @param {object} [foo={}]
*/
m(foo = {}) {
>m : (foo?: object) => void
>foo : any
>{} : {}
/**
* @type object
*/
this.foo = foo;
>this.foo = foo : any
>this.foo : any
>this : this
>foo : any
>foo : any
/**
* @type object
*/
this.bar = bar.arguments;
>this.bar = bar.arguments : {}
>this.bar : any
>this : this
>bar : any
>bar.arguments : {}
>bar : { arguments: {}; }
>arguments : {}
}
}