Opened 11 years ago

Closed 10 years ago

#96 closed defect (fixed)

Lambda list &rest interpreter error

Reported by: Mark Evenson Owned by: ehuelsmann
Priority: minor Milestone: 0.26
Component: interpreter Version:
Keywords: compiler lambda Cc:
Parent Tickets:

Description

The following lambda list

(defun hashmap-to-hashtable (&key (k #'identity) &rest rest)
  (let ((foo)))

fails to compile with the error

&REST/&BODY must be followed by a variable.

Reported by Alan Ruttenberg

Change History (3)

comment:1 Changed 11 years ago by Mark Evenson

The error is in JVM::REWRITE-LAMBDA.

comment:2 Changed 11 years ago by Mark Evenson

Component: compilerinterpreter
Summary: Lambda list &rest compilation errorLambda list &rest interpreter error

As Alessio points out, &rest has to be specified before &key arguments, so this is a problem with the interpreter, not the compiler.

comment:3 Changed 10 years ago by ehuelsmann

Milestone: unscheduled0.26
Resolution: fixed
Status: newclosed

0.26 reports

"&REST/&BODY must precede &KEY"

which is the correct error to show.

Note: See TracTickets for help on using tickets.