TypeScript/tests/baselines/reference/varArgConstructorMemberParameter.errors.txt
2015-04-08 22:06:55 -07:00

18 lines
480 B
Plaintext

tests/cases/compiler/varArgConstructorMemberParameter.ts(10,25): error TS1005: ',' expected.
==== 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.
}