Opened 7 years ago

Closed 6 years ago

#1389 closed defect (worksforme)

case-lambda expects 2 arguments

Reported by: ajmorgan Owned by:
Priority: major Milestone: someday
Component: unknown Version: 4.12.0
Keywords: Cc:
Estimated difficulty:


from the case-lambda documentation:

(define plus


(() 0)
((x) x)
((x y) (+ x y))
((x y z) (+ (+ x y) z))
(args (apply + args))))

=> Error: (#f) "during expansion of (case-lambda ...) - bad argument count - received 5 but expected 2": (#<procedure (min a b)>)

Change History (2)

comment:1 Changed 7 years ago by sjamaan

It sounds like you've overridden or redefined something else that breaks this. If I run the code above, it just works.

comment:2 Changed 6 years ago by evhan

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.