Commit 7ab3978c authored by Stefan Behnel's avatar Stefan Behnel

tiny cleanup

parent bc82e78e
...@@ -2696,7 +2696,7 @@ class GeneralCallNode(CallNode): ...@@ -2696,7 +2696,7 @@ class GeneralCallNode(CallNode):
if not self.function.type.is_pyobject: if not self.function.type.is_pyobject:
if self.function.type.is_error: if self.function.type.is_error:
self.type = error_type self.type = error_type
return error_type return
if hasattr(self.function, 'entry') and not self.function.entry.as_variable: if hasattr(self.function, 'entry') and not self.function.entry.as_variable:
error(self.pos, "Keyword and starred arguments not allowed in cdef functions.") error(self.pos, "Keyword and starred arguments not allowed in cdef functions.")
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment