Fixes binder assigning values to static read only scope

This commit is contained in:
2018-11-23 13:18:49 +01:00
parent aae16e8b62
commit ea24695128
4 changed files with 18 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ namespace Ycicle
var input = Console.ReadLine();
if (input == "exit") return;
script = script == null
? new Script(input, boundScope.Variables, evaluationScope.Variables)
? new Script(input, boundScope, evaluationScope)
: Script.ContinueWith(script, input);
if (script.Diagnostics.Messages.Count > 0)