TypeScript/tests/baselines/reference/argumentsReferenceInMethod3_Js.types

53 lines
701 B
Plaintext

=== /a.js ===
class A {
>A : A
get arguments() {
>arguments : { bar: {}; }
return { bar: {} };
>{ bar: {} } : { bar: {}; }
>bar : {}
>{} : {}
}
}
class B extends A {
>B : B
>A : A
/**
* @param {object} [foo={}]
*/
m(foo = {}) {
>m : (foo?: object) => void
>foo : any
>{} : {}
/**
* @type object
*/
this.x = foo;
>this.x = foo : any
>this.x : any
>this : this
>x : any
>foo : any
/**
* @type object
*/
this.y = super.arguments.bar;
>this.y = super.arguments.bar : {}
>this.y : any
>this : this
>y : any
>super.arguments.bar : {}
>super.arguments : { bar: {}; }
>super : A
>arguments : { bar: {}; }
>bar : {}
}
}