Opened 8 months ago

Last modified 8 months ago

#1389 new defect

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 (1)

comment:1 Changed 8 months 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.

Note: See TracTickets for help on using tickets.