From fa02123ab00be8b8fe212c5d34ed021f1b63de74 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 22 Jun 2016 22:33:33 +0300 Subject: Add double type and fix exception types --- main/core/runtime/Scope.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/core/runtime/Scope.java') diff --git a/main/core/runtime/Scope.java b/main/core/runtime/Scope.java index e3bf899..0bf8907 100644 --- a/main/core/runtime/Scope.java +++ b/main/core/runtime/Scope.java @@ -26,7 +26,8 @@ public class Scope { public DataContainer resolveSymbol(String symbol, List params) throws InterpreterException { if (functions.containsKey(symbol)) { - return functions.get(symbol).evaluate(params); + DataContainer r = functions.get(symbol).evaluate(params); + return r; } if (variables.containsKey(symbol)) { return variables.get(symbol); -- cgit v1.3