From 87a533ac2b5a8e5cd5a5916eb25b139f7b733e78 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 23 Jan 2019 12:48:00 +0100 Subject: [PATCH] Fix table variable assignment in generic for loop not binding to proper symbol --- Upsilon/Binder/Binder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index d176152..99a12c7 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -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);