15 lines
No EOL
368 B
Text
15 lines
No EOL
368 B
Text
==== tests/cases/compiler/varArgConstructorMemberParameter.ts (1 errors) ====
|
|
class Foo1 {
|
|
constructor (...args: string[]) { }
|
|
}
|
|
|
|
class Foo2 {
|
|
constructor (public args: string[]) { }
|
|
}
|
|
|
|
class Foo3 {
|
|
constructor (public ...args: string[]) { }
|
|
~~~
|
|
!!! ',' expected.
|
|
}
|
|
|