0.8.16.25:
[sbcl.git] / src / code / alien-type.lisp
index b76b3e9..5aed5cd 100644 (file)
@@ -26,6 +26,9 @@
 
 (!define-type-class alien)
 
+(!define-type-method (alien :negate) (type)
+  (make-negation-type :type type))
+
 (!define-type-method (alien :unparse) (type)
   `(alien ,(unparse-alien-type (alien-type-type-alien-type type))))
 
@@ -60,7 +63,7 @@
   (if alien-type
       (let ((lisp-rep-type (compute-lisp-rep-type alien-type)))
        (if lisp-rep-type
-           (specifier-type lisp-rep-type)
+           (single-value-specifier-type lisp-rep-type)
            (%make-alien-type-type alien-type)))
       *universal-type*))