From e48a89e70db71a68c691753d2a519051725f28a8 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 7 Dec 2018 13:51:43 +0100 Subject: [PATCH] Changed how modules bind so that they can override existing variables --- Upsilon/Binder/Binder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 147b43f..8b69057 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -252,7 +252,7 @@ namespace Upsilon.Binder { if (moduleVariable.Value.Local) continue; - Scope.Variables.Add(moduleVariable.Key, moduleVariable.Value); + Scope.AssignToNearest(moduleVariable.Value); } } }