projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] Allows shadowing of probing pattern variables
[mono.git]
/
mcs
/
mcs
/
cs-parser.jay
diff --git
a/mcs/mcs/cs-parser.jay
b/mcs/mcs/cs-parser.jay
index 6e20a8b13f0aeedac01b0a29afcb61722a4b34c1..2868d2fd8f692fd3d9362e9431b5719dc4301148 100644
(file)
--- a/
mcs/mcs/cs-parser.jay
+++ b/
mcs/mcs/cs-parser.jay
@@
-4614,7
+4614,7
@@
additive_expression
var lt = (LocatedToken) $4;
var lv = new LocalVariable (current_block, lt.Value, lt.Location);
is_expr.Variable = lv;
- current_block.AddLocalName (lv);
+ current_block.AddLocalName (lv
.Name, lv, true
);
}
$$ = is_expr;