Properly handle full composite key binding in for loops

This commit is contained in:
Deukhoofd 2019-01-19 18:05:55 +01:00
parent 246aba3e95
commit 43da2b3d19
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 3 additions and 0 deletions

View File

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