Opened 13 years ago
Closed 13 years ago
#315 closed defect (fixed)
#'<macro op> in a :method clause causes spurious signature incongruity
Reported by: | james.anderson | Owned by: | gz |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Compiler | Version: | |
Keywords: | Cc: |
Description
QRES-GDS> (lisp-implementation-version) "Version 1.2-r9777-working-0711 (LinuxX8664)" QRES-GDS> (defgeneric test-or (a)
(:method ((a sequence))
(reduce #'plus a :key #'identity)))
#<STANDARD-GENERIC-FUNCTION TEST-OR #x30006EF2F15F> QRES-GDS> (defgeneric test-or (a)
(:method ((a sequence))
(reduce #'or a :key #'identity)))
;Compiler warnings : ; In (TEST-OR (SEQUENCE)) inside an anonymous lambda form: FUNCTION can't be used to reference lexically visible macro OR. ; Evaluation aborted.
;;; the slime backtrace buffer contained:
Lambda list of method #<STANDARD-METHOD TEST-OR (SEQUENCE)> is incompatible with that of the generic function TEST-OR. Method's lambda-list : (A) Generic-function's : (A)
[Condition of type SIMPLE-ERROR]
Restarts:
0: [CONTINUE] Remove 0 methods from the generic-function and change its lambda list. 1: [ABORT] Return to SLIME's top level.
Backtrace:
0: (CCL::CHECK-DEFMETHOD-CONGRUENCY #<STANDARD-GENERIC-FUNCTION TEST-OR #x30006EF2F15F> #<STANDARD-METHOD TEST-OR (SEQUENCE)>) 1: (CCL::%ADD-STANDARD-METHOD-TO-STANDARD-GF #<STANDARD-GENERIC-FUNCTION TEST-OR #x30006EF2F15F> #<STANDARD-METHOD TEST-OR (SEQUENCE)>) 2: (CCL::ENSURE-METHOD TEST-OR (#<BUILT-IN-CLASS SEQUENCE>) :FUNCTION #<CCL:METHOD-FUNCTION TEST-OR (SEQUENCE)> :QUALIFIERS NIL :LAMBDA-LIST (A)) 3: (#<Anonymous Function #x30006F896E3F>) 4: (SWANK::EVAL-REGION "(defgeneric test-or (a)
(:method ((a sequence))
(reduce #'or a :key #'identity)))
")
5: ((:INTERNAL SWANK::REPL-EVAL))
...
Change History (5)
comment:1 Changed 13 years ago by james.anderson
- Component changed from IDE to Compiler
- Owner changed from gz to gb
comment:2 Changed 13 years ago by gb
- Resolution set to duplicate
- Status changed from new to closed
comment:3 Changed 13 years ago by gz
- Resolution duplicate deleted
- Status changed from closed to reopened
side effect, yes, but not quite a duplicate.
comment:4 Changed 13 years ago by gz
- Owner changed from gb to gz
- Status changed from reopened to new
comment:5 Changed 13 years ago by gz
- Resolution set to fixed
- Status changed from new to closed
This seems to be yet another unfortunate side-effect of ticket:294.