Derived function type used as an assertion
Bug #1393302 reported by
Stas Boukarev
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
(defun redefine ()
"123")
(defun foo ()
(unwind-protect (redefine) 1))
compiled in one go in a single file,
then
(progn (defun redefine () "12") (foo))
=>
The value "12" is not of type (SIMPLE-ARRAY CHARACTER (3)).
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
(defun foo ()
(let ((x (redefine)))
x))
is enough.