X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.pure.lisp;h=05e7a30e4278de95834743b9178ed006d913cce3;hb=0af996ffd49f08b71ba071c6d69dd2b465b4202f;hp=3bddb5b99b65de85cdae25370a828f1cb6d13217;hpb=1cf230d59a80f5fba3b90b929e6ab61e9a6fbe84;p=sbcl.git diff --git a/tests/type.pure.lisp b/tests/type.pure.lisp index 3bddb5b..05e7a30 100644 --- a/tests/type.pure.lisp +++ b/tests/type.pure.lisp @@ -289,3 +289,14 @@ ACTUAL ~D DERIVED ~D~%" '(cons (satisfies bar) t)) (assert (null cyes)) (assert (null cwin)))) + +(multiple-value-bind (yes win) + (subtypep 'generic-function 'function) + (assert yes) + (assert win)) +;; this would be in some internal test suite like type.before-xc.lisp +;; except that generic functions don't exist at that stage. +(multiple-value-bind (yes win) + (subtypep 'generic-function 'sb-kernel:funcallable-instance) + (assert yes) + (assert win))