defmethod multiple specializers with one argument

Bug #525916 reported by Reinout Stevens on 2010-02-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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

SBCL 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

Nathan Froyd (froydnj) wrote :

Thanks for the report; fixed in

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  Edit
Everyone can see this information.

Other bug subscribers