Fix handling of wrong size vectors.
Add tests. Fixes PR9885. svn: r12334
This commit is contained in:
parent
f076494c48
commit
c4deb8e5e7
|
@ -108,7 +108,8 @@
|
||||||
body)]))))])])
|
body)]))))])])
|
||||||
#`[(vector? #,x)
|
#`[(vector? #,x)
|
||||||
(case (vector-length #,x)
|
(case (vector-length #,x)
|
||||||
clauses ...)])]
|
clauses ...
|
||||||
|
[else (#,esc)])])]
|
||||||
;; it's a structure
|
;; it's a structure
|
||||||
[(box? k)
|
[(box? k)
|
||||||
;; all the rows are structures with the same predicate
|
;; all the rows are structures with the same predicate
|
||||||
|
|
|
@ -572,5 +572,10 @@
|
||||||
[_ (values 4 5)])])
|
[_ (values 4 5)])])
|
||||||
(list x y)))
|
(list x y)))
|
||||||
|
|
||||||
|
(comp 'bad
|
||||||
|
(match #(1)
|
||||||
|
[(vector a b) a]
|
||||||
|
[else 'bad]))
|
||||||
|
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user