Fix table variable assignment in generic for loop not binding to proper symbol
This commit is contained in:
parent
29818dad31
commit
87a533ac2b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue