allow &mut on variable in list-eating pattern
This commit is contained in:
@@ -231,7 +231,7 @@ class Helpers {
|
|||||||
for (idx in 0...exps.length) {
|
for (idx in 0...exps.length) {
|
||||||
var exp = exps[idx];
|
var exp = exps[idx];
|
||||||
switch (exp.def) {
|
switch (exp.def) {
|
||||||
case Symbol(_):
|
case Symbol(_) | MetaExp("mut", {pos: _, def: Symbol(_)}):
|
||||||
expNames.push(exp);
|
expNames.push(exp);
|
||||||
case ListRestExp(name):
|
case ListRestExp(name):
|
||||||
if (restExpIndex > -1) {
|
if (restExpIndex > -1) {
|
||||||
|
Reference in New Issue
Block a user