Opened 18 months ago

Closed 9 months 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 18 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.

comment:2 Changed 9 months ago by evhan

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.