aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2022-07-22 02:23:32 +0000
committermryouse2022-07-22 02:23:32 +0000
commit7eab4909075b037d7a3a7533f8f13a4aebeeb837 (patch)
treec0785462b2732bb84073239a11a3dc06b2f447d0
parent869e6da7796a71b7f861627e0fced2ee14da01ca (diff)
bugfix: type functions need to be mfs
-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 15cb257..344ac74 100644
--- a/neb/std/core.py
+++ b/neb/std/core.py
@@ -282,7 +282,7 @@ def interpretType(symbol, args, env, ns):
raise InterpretPanic(symbol, "parent must be a valid type", parent_type)
func = evaluate(args[2], env, ns)
- if not isinstance(func, Function):
+ if not isinstance(func, MultiFunction):
raise InterpretPanic(symbol, "validation must be a :func", func)
new_type = UserType(name, parent_type, func)