aboutsummaryrefslogtreecommitdiff
path: root/neb/std/core.py
diff options
context:
space:
mode:
authormryouse2022-06-30 03:40:39 +0000
committermryouse2022-06-30 03:40:39 +0000
commitbf8900200c25d383c883501446a8048ad8966d94 (patch)
treec9c5fbd4563b2edc066339f0933d9b225bb5bdd6 /neb/std/core.py
parent5274edb5484f75266304d21840f8e854f2a1d3c5 (diff)
initial commit of multi-type support (only list of strings for now)
Diffstat (limited to 'neb/std/core.py')
-rw-r--r--neb/std/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/core.py b/neb/std/core.py
index 1c3c4b4..750594e 100644
--- a/neb/std/core.py
+++ b/neb/std/core.py
@@ -47,7 +47,7 @@ CORE.register("redef", Builtin("redef", interpretRedef, [def_name_arg, def_val_a
def interpretLambda(symbol, args, env, ns):
new_args = args
return_type = Type(":any")
- if isinstance(args[0], Type):
+ if isinstance(args[0], Type) or isinstance(args[0], MultiType):
return_type = args[0]
new_args = args[1:]