Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pclc/visitors/first_pass_resolver_visitor.py')
-rw-r--r--src/pclc/visitors/first_pass_resolver_visitor.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pclc/visitors/first_pass_resolver_visitor.py b/src/pclc/visitors/first_pass_resolver_visitor.py
index b01edaa..ec8fc71 100644
--- a/src/pclc/visitors/first_pass_resolver_visitor.py
+++ b/src/pclc/visitors/first_pass_resolver_visitor.py
@@ -955,8 +955,7 @@ class FirstPassResolverVisitor(ResolverVisitor):
'unknown' : str(ret.value)})
else:
self._add_errors("ERROR: %(filename)s at line %(lineno)d, unknown variable in return %(unknown)s",
- [ret.value] if ret.value not in self._current_scope and \
- ret.value not in self._module.definition.inputs else [],
+ [ret.value] if ret.value not in self._current_scope else [],
lambda v: {'filename' : v.filename,
'lineno' : v.lineno,
'unknown' : str(ret.value)})