Cannot assign a value to foreach iteration variable in C#

This commit is contained in:
Sam Harwell 2013-02-17 15:07:24 -06:00
parent 9aabe06a6b
commit 6d1267a883
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}