Summary
case-lambda expects 2 arguments
Metadata
- Id: eba726272c72a07731b5db27882c3e7a767dda2d
- Trac id: 1389
- Type: defect
- Reporter: ajmorgan
- Owner:
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty:
- Resolution: worksforme
- Priority: major
- Milestone: someday
- Version: 4.12.0
- Changetime: 2018-04-27 17:56:47 UTC
- Created: 2017-07-18 19:08:58 UTC
- Keywords:
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)>)
Changes and comments
[2017-07-18 19:44:37 UTC] sjamaan wrote:
It sounds like you've overridden or redefined something else that breaks this. If I run the code above, it just works.