forked from jasder/antlr
Cannot assign a value to foreach iteration variable in C#
This commit is contained in:
parent
9aabe06a6b
commit
6d1267a883
|
@ -260,8 +260,8 @@ namespace Antlr4.Runtime.Atn
|
|||
ATNConfigSet dup = new ATNConfigSet();
|
||||
foreach (ATNConfig c in configs)
|
||||
{
|
||||
c = c.Transform(c.GetState(), SemanticContext.None);
|
||||
dup.AddItem(c);
|
||||
ATNConfig config = c.Transform(c.GetState(), SemanticContext.None);
|
||||
dup.AddItem(config);
|
||||
}
|
||||
configs = dup;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue