From 43da2b3d19a3eb2802d1b5dc75291d6bba6e680e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 19 Jan 2019 18:05:55 +0100 Subject: [PATCH] Properly handle full composite key binding in for loops --- Upsilon/Binder/Binder.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index e064d61..fad8d2c 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -959,6 +959,9 @@ namespace Upsilon.Binder VariableSymbol valueVariable; if (boundEnumerableExpression.Type is CompositeTypeContainer composite && composite.Types.Length == 2) { + var keyType = composite.Types[0]; + keyVariable.TypeContainer = keyType; + var type = composite.Types[1]; if (type == Type.UserData) {