From: Christophe R. <cr...@us...> - 2009-11-20 21:34:03
|
Update of /cvsroot/sbcl/sbcl/tests In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25821/tests Modified Files: type.pure.lisp Log Message: 1.0.32.36: (subtypep 'symbol 'keyword) must be NIL, T Special-case the hairy type (SATISFIES KEYWORDP) and its interaction with the SYMBOL type. (We could potentially be cleverer at this point and additionally tell the system that all non-symbols are non-(SATISFIES KEYWORDP) types, but we're somewhat late in the development cycle now) Fixes bug #485972 Index: type.pure.lisp =================================================================== RCS file: /cvsroot/sbcl/sbcl/tests/type.pure.lisp,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- type.pure.lisp 19 Dec 2008 13:46:34 -0000 1.38 +++ type.pure.lisp 20 Nov 2009 21:33:53 -0000 1.39 @@ -420,3 +420,7 @@ (let ((i (sb-c::values-type-intersection x y))) (assert (sb-c::type= i (sb-c::values-type-intersection i x))) (assert (sb-c::type= i (sb-c::values-type-intersection i y)))))))) + +(with-test (:name :bug-485972) + (assert (equal (multiple-value-list (subtypep 'symbol 'keyword)) '(nil t))) + (assert (equal (multiple-value-list (subtypep 'keyword 'symbol)) '(t t)))) |