aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authormryouse2022-06-13 03:17:34 +0000
committermryouse2022-06-13 03:17:34 +0000
commit9e874cb5687f2b651d5307f7277d885c722cbaac (patch)
treee4cfe4c4e3e2f3f8ea439c5cefd89faefe96985b /interpreter.py
parentebcac8b70ed82e39181f5cb6a156182f2e2b5095 (diff)
use actual parameter names in Arg definition
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 2408db4..80c6a50 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -97,7 +97,7 @@ class UserFunction(Function):
def __init__(self, name, params, body):
# TODO this doesn't do type checking, or optional, or lazy
- args = [Arg("arg", TypeEnum.ANY, False, False)] * len(params)
+ args = [Arg(p.name, TypeEnum.ANY, False, False) for p in params]
super().__init__(name, params, body, args)
def call(self, expr, env):