Fix table variable assignment in generic for loop not binding to proper symbol
This commit is contained in:
@@ -1017,6 +1017,10 @@ namespace Upsilon.Binder
|
||||
valueVariable = new UserDataVariableSymbol(valueVar.Name,
|
||||
BoundTypeHandler.GetTypeDefinition(type.UserData), true);
|
||||
}
|
||||
else if (type == Type.Table)
|
||||
{
|
||||
valueVariable = new TableVariableSymbol(valueVar.Name, true, composite.Types[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
valueVariable = new VariableSymbol(valueVar.Name, composite.Types[1], true);
|
||||
|
||||
Reference in New Issue
Block a user