diff options
| author | mryouse | 2022-07-22 02:23:32 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-22 02:23:32 +0000 |
| commit | 7eab4909075b037d7a3a7533f8f13a4aebeeb837 (patch) | |
| tree | c0785462b2732bb84073239a11a3dc06b2f447d0 | |
| parent | 869e6da7796a71b7f861627e0fced2ee14da01ca (diff) | |
bugfix: type functions need to be mfs
| -rw-r--r-- | neb/std/core.py | 2 |
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) |
