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