Fix an issue with combinations of InstanceElement and Lambdas.
This commit is contained in:
1 parent
88853c78f4
commit
50752df6dd
2 files changed
+12
-6
No files matched your search
@@ -176,8 +176,10 @@ class Evaluator(object):
|
||||
elif isinstance(element, pr.Keyword):
|
||||
# For False/True/None
|
||||
return [compiled.builtin.get_by_name(element.value)]
|
||||
elif isinstance(element, pr.Lambda):
|
||||
elif element.isinstance(pr.Lambda):
|
||||
return [er.LambdaWrapper(self, element)]
|
||||
elif element.isinstance(er.LambdaWrapper):
|
||||
return [element] # TODO this is no real evaluation.
|
||||
elif element.type == 'power':
|
||||
types = self._eval_atom(element.children[0])
|
||||
for trailer in element.children[1:]:
|
||||
|
||||
Reference in new issue
Block a user