From 54808927fa3cb43581d5f1f98f0d5a8d195018ee Mon Sep 17 00:00:00 2001 From: mryouse Date: Sat, 23 Jul 2022 01:09:00 +0000 Subject: bugfix: type functions need to be called correctly --- neb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'neb') 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) -- cgit v1.2.3