THE forms did not work with VALUES types when compiled

This commit is contained in:
Juan Jose Garcia Ripoll 2012-07-09 00:08:25 +02:00
parent 572775c8c5
commit 0403394c85

View file

@ -93,6 +93,10 @@
form form-type and-type)
(cond ((or (trivial-type-p args) (not (policy-type-assertions)))
value)
((and (consp type)
(eq (first type) 'values))
(c1checked-value (list (values-type-primary-type type)
value)))
((and (policy-evaluate-forms) (constantp value))
(unless (typep (cmp-eval value) type)
(cmpwarn "Failed type assertion for value ~A and type ~A"