diff options
| author | mryouse | 2022-07-23 01:09:00 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-23 01:09:00 +0000 |
| commit | 54808927fa3cb43581d5f1f98f0d5a8d195018ee (patch) | |
| tree | a9fb550daf179f05610f833da450fc03bb4a8eef | |
| parent | 7eab4909075b037d7a3a7533f8f13a4aebeeb837 (diff) | |
bugfix: type functions need to be called correctly
| -rw-r--r-- | neb/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/__init__.py b/neb/__init__.py index a6d5193..a2d6541 100644 --- a/neb/__init__.py +++ b/neb/__init__.py @@ -384,7 +384,7 @@ class TypeWrap: # if it's an any type, it's valid if self.parent is None: return Bool(True) - if isinstance(self.is_func, Function): + if isinstance(self.is_func, Function) or isinstance(self.is_func, MultiFunction): valid = self.is_func.call(Expr([self.name, target]), env, ns) else: valid = self.is_func(self.name, [target], env, ns) |
