allow &mut on variable in list-eating pattern

This commit is contained in:
2022-02-03 14:51:40 -07:00
parent 2958172387
commit e3ce4e20b7

View File

@@ -231,7 +231,7 @@ class Helpers {
for (idx in 0...exps.length) {
var exp = exps[idx];
switch (exp.def) {
case Symbol(_):
case Symbol(_) | MetaExp("mut", {pos: _, def: Symbol(_)}):
expNames.push(exp);
case ListRestExp(name):
if (restExpIndex > -1) {