aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
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):