Opened 4 weeks ago

Last modified 4 weeks 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:

Description

from the case-lambda documentation:

(define plus

(case-lambda

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

causes:
=> 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 4 weeks 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.