Closed Bug 418765 Opened 18 years ago Closed 18 years ago

rest params cause compiler error

Categories

(Tamarin Graveyard :: Self-hosting compiler (ESC), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markh, Assigned: lhansen)

Details

Attachments

(1 file)

The following code: """ { public class bar { public function bang(...s) {;} } } """ causes: ReferenceError: Error #1065: Variable restParameter is not defined. at Parse::Parser/Parse::nonemptyParameters()[../src/parse.es:4498] at Parse::Parser/Parse::parameters()[../src/parse.es:4474] at Parse::Parser/Parse::functionSignature()[../src/parse.es:4381] at Parse::Parser/Parse::functionDefinition()[../src/parse.es:4044] at Parse::Parser/Parse::annotatableDirective()[../src/parse.es:5076] at Parse::Parser/Parse::directive()[../src/parse.es:4996] ... A quick grep shows restParameter isn't defined anywhere.
Assignee: nobody → lhansen
Attached patch PatchSplinter Review
This isn't squeaky-clean but it's roughly right.
Attachment #304814 - Flags: review?(mhammond)
Comment on attachment 304814 [details] [diff] [review] Patch looks good and wfm - thx.
Attachment #304814 - Flags: review?(mhammond) → review+
Pushed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: