Fixed violation of the invariant introduced in r16504.

svn: r17371
This commit is contained in:
Casey Klein 2009-12-20 19:36:38 +00:00
parent f332afc3dd
commit 16fd573e7b
2 changed files with 3 additions and 3 deletions

View File

@ -628,6 +628,7 @@
(test-ellipsis-binding '((number_1 number_2) ...) '((1 2)))
(test-ellipsis-binding '((name x number_1) ...) '(1 2))
(test-ellipsis-binding '(((number_1 ...) (number_2 ...)) ...) '(((1) (2))))
(test-ellipsis-binding '(number ... variable) '(1 x))
(cond
[(= failures 0)

View File

@ -1478,9 +1478,8 @@ before the pattern compiler is invoked.
[else (let ([r-exp (car r-exps)])
(cond
[(repeat? r-exp)
(i-loop
(cdr r-exps)
(append (repeat-empty-bindings r-exp) ribs))]
(append (repeat-empty-bindings r-exp)
(i-loop (cdr r-exps) ribs))]
[else
(loop (car r-exps) (i-loop (cdr r-exps) ribs))]))])))]
[else ribs])))