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,
|
valueVariable = new UserDataVariableSymbol(valueVar.Name,
|
||||||
BoundTypeHandler.GetTypeDefinition(type.UserData), true);
|
BoundTypeHandler.GetTypeDefinition(type.UserData), true);
|
||||||
}
|
}
|
||||||
|
else if (type == Type.Table)
|
||||||
|
{
|
||||||
|
valueVariable = new TableVariableSymbol(valueVar.Name, true, composite.Types[1]);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
valueVariable = new VariableSymbol(valueVar.Name, composite.Types[1], true);
|
valueVariable = new VariableSymbol(valueVar.Name, composite.Types[1], true);
|
||||||
|
|||||||
Reference in New Issue
Block a user