projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Utility predicates for packing: UNBOUNDED-SC-P and UNBOUNDED-TN-P
[sbcl.git]
/
src
/
code
/
destructuring-bind.lisp
diff --git
a/src/code/destructuring-bind.lisp
b/src/code/destructuring-bind.lisp
index
e2d699d
..
c485b75
100644
(file)
--- a/
src/code/destructuring-bind.lisp
+++ b/
src/code/destructuring-bind.lisp
@@
-20,5
+20,8
@@
tree structure resulting from the evaluation of EXPRESSION."
:doc-string-allowed nil
:wrap-block nil)
`(let ((,whole-name ,expression))
+ ;; This declaration-as-assertion should protect us from
+ ;; (DESTRUCTURING-BIND (X . Y) 'NOT-A-LIST ...).
+ (declare (type list ,whole-name))
,@local-decls
,body))))