defmethod multiple specializers with one argument

Bug #525916 reported by Reinout Stevens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

When defining a method and you try to have more then 1 typespecializer SBCL does not complain. It does complain when trying to execute that method

(defclass animal ()
  ())

(defclass person ()
  ())

(defmethod foo ((arg animal person))
   arg) ;;this works and does not give an error/warning

(foo (make-instance 'person)) ;;doesnt work, no applicable method

version:
SBCL 1.0.29.11.debian and
SBCL 1.0.31 and
SBCL 1.0.34

uname -a:
Linux sch281 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux for version .29
FreeBSD 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Oct 25 08:55:51 UTC 2009 <email address hidden>:/usr/obj/usr/src/sys/GENERIC i386 for .31 and .34

Revision history for this message
Nathan Froyd (froydnj) wrote :

Thanks for the report; fixed in 1.0.35.20.

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.