Ticket #961 (closed defect: fixed)
Error for wrong number of args to structure accessor
| Reported by: | gz | Owned by: | gb |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Compiler | Version: | trunk |
| Keywords: | Cc: |
Description
This gets a compile time error rather than a compiler warning:
Welcome to Clozure Common Lisp Version 1.9-dev-r15341 (DarwinX8664)! ? (defstruct foo bar) FOO ? (defun test () (foo-bar)) > Error: Required arguments in (CCL::STRUCTURE-TYPECHECK FOO) don't match lambda list (CCL::STRUCT CCL::TYPESPEC). > While executing: (:INTERNAL CCL::NX1-COMPILE-LAMBDA), in process listener(1). > Type :GO to continue, :POP to abort, :R for a list of available restarts. > If continued: continue compilation ignoring this form > Type :? for other options. 1 >
Change History
Note: See
TracTickets for help on using
tickets.
