Skip to content

Commit f279e0d

Browse files
committed
Handle pattern-bound upvars
If a closure inside a case alternative (for example, a for each loop) referenced a pattern-bound variable, this would cause an assertion failure in trans. Changed trans::collect_upvars to handle pattern-bound vars correctly. Incidentally, eliminated all direct uses of option::get in trans.
1 parent 1bba585 commit f279e0d

File tree

2 files changed

+186
-49
lines changed

2 files changed

+186
-49
lines changed

0 commit comments

Comments
 (0)