Fix table variable assignment in generic for loop not binding to proper symbol

This commit is contained in:
Deukhoofd 2019-01-23 12:48:00 +01:00
parent 29818dad31
commit 87a533ac2b
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 4 additions and 0 deletions

View File

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