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