Opened 8 years ago
Closed 8 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: |
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 (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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