When finding type errors in in ENFORCE-TYPES, emit a warning

This commit is contained in:
Juan Jose Garcia Ripoll 2010-06-19 16:02:23 +02:00
parent 5a47ccedd3
commit 0ae89e2494

View file

@ -52,8 +52,8 @@
(actual-type (location-primary-type value))
(intersection (type-and actual-type expected-type)))
(unless intersection
(cmperr "The argument ~d of function ~a has type~&~4T~A~&instead of expected~&~4T~A"
i fname actual-type expected-type))
(cmpwarn-stype "The argument ~d of function ~a has type~&~4T~A~&instead of expected~&~4T~A"
i fname actual-type expected-type))
#-new-cmp
(when (zerop (cmp-env-optimization 'safety))
(setf (c1form-type value) intersection))))))))