TypeScript/tests/baselines/reference/varArgConstructorMemberParameter.errors.txt
2014-09-11 16:11:08 -07:00

15 lines
382 B
Plaintext

==== tests/cases/compiler/varArgConstructorMemberParameter.ts (1 errors) ====
class Foo1 {
constructor (...args: string[]) { }
}
class Foo2 {
constructor (public args: string[]) { }
}
class Foo3 {
constructor (public ...args: string[]) { }
~~~
!!! error TS1005: ',' expected.
}