2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/varArgConstructorMemberParameter.ts(10,25): error TS1005: ',' expected.
|
|
|
|
|
|
|
|
|
2015-04-09 02:49:14 +02:00
|
|
|
==== tests/cases/compiler/varArgConstructorMemberParameter.ts (1 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class Foo1 {
|
|
|
|
constructor (...args: string[]) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class Foo2 {
|
|
|
|
constructor (public args: string[]) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class Foo3 {
|
|
|
|
constructor (public ...args: string[]) { }
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|