2014-12-02 07:03:41 +01:00
|
|
|
tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts(2,14): error TS1047: A rest parameter cannot be optional.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts (1 errors) ====
|
|
|
|
class C {
|
|
|
|
foo(...bar?) { }
|
2014-12-02 07:03:41 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1047: A rest parameter cannot be optional.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|