Type mismatch in the expansion of (setf schar)
Bug #1668619 reported by
Timofei Shatrov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Minimal example:
(defun weird-warning (str)
(let ((copy (copy-seq str)))
(setf (char copy 0) #\HIRAGANA_
Upon compiling the following warning appears:
warning:
Derived type of SB-C::NEW-VALUE is
(VALUES EXTENDED-CHAR &OPTIONAL),
conflicting with its asserted type
BASE-CHAR.
This does not happen in SBCL 1.3.3 but does happen in SBCL 1.3.8 and later.
The code works, but the warning trips SLIME per-function compilation and asdf:load-system.
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is actually LETTER_ SMALL_TU) )
(defun foo (a)
(setf (schar a 0) #\HIRAGANA_