diff options
| author | mryouse | 2022-07-02 16:37:38 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-02 16:45:25 +0000 |
| commit | 4a8ee6f62f203f86a9ad3e15b3f46956e7915160 (patch) | |
| tree | f84be2b7317d501ff2a40cbb4c3f43b98eda13e4 /neb | |
| parent | 3682c53a7028497f634519f69e9469c2dbd088d8 (diff) | |
bugfix: type verification functions can be Builtins
Diffstat (limited to 'neb')
| -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 0757071..099bc2a 100644 --- a/neb/__init__.py +++ b/neb/__init__.py @@ -186,7 +186,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, UserFunction): + if isinstance(self.is_func, Function): valid = self.is_func.call(Expr([self.name, target]), env, ns) else: valid = self.is_func(self.name, [target], env, ns) |
