sequence match expander fails if empty case occurs first?
Closed this issue · 0 comments
florence commented
> (require alexis/collection)
> (match (list 1 2 3) [(sequence) #f] [(sequence a ...) a])
. . ../../Applications/Racket/racket/collects/racket/match/parse-helper.rkt:148:0: last: contract violation
expected: (and/c list? (not/c empty?))
given: '()
This seems to only happen if the first case is (sequence)
?