TypeScript/tests/baselines/reference/varArgConstructorMemberParameter.errors.txt

15 lines
368 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}