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

14 lines
555 B
Plaintext
Raw Normal View History

tests/cases/compiler/accessorWithRestParam.ts(3,11): error TS1053: A 'set' accessor cannot have rest parameter.
tests/cases/compiler/accessorWithRestParam.ts(4,18): error TS1053: A 'set' accessor cannot have rest parameter.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/accessorWithRestParam.ts (2 errors) ====
class C {
set X(...v) { }
~~~
!!! error TS1053: A 'set' accessor cannot have rest parameter.
2014-07-13 01:04:16 +02:00
static set X(...v2) { }
~~~
!!! error TS1053: A 'set' accessor cannot have rest parameter.
2014-07-13 01:04:16 +02:00
}