Add
(defknown coerce-to-condition ((or condition symbol string function)
list type-specifier symbol)
condition
(explicit-check))
Which helps to remove optimization notes in some cases with
restart-case.
Fixes lp#1025416.
(t
(error 'simple-type-error
:datum datum
- :expected-type '(or symbol string)
+ :expected-type '(or symbol string function)
:format-control "Condition designator ~s is not of type ~s."
:format-arguments (list datum
- '(or symbol string))))))
+ '(or symbol string function))))))
(define-condition layout-invalid (type-error)
()
())
(defknown style-warn (t &rest t) null ())
+(defknown coerce-to-condition ((or condition symbol string function)
+ list type-specifier symbol)
+ condition
+ (explicit-check))
+
(defknown sc-number-or-lose (symbol) sc-number
(foldable))