Commit e25b4200 authored by Armon Dadgar's avatar Armon Dadgar

Fixing bug which would reference an unbound local variable. Should reference...

Fixing bug which would reference an unbound local variable. Should reference "self.visibility" instead of visibility.
parent 787701b6
...@@ -1726,7 +1726,7 @@ class CFuncDefNode(FuncDefNode): ...@@ -1726,7 +1726,7 @@ class CFuncDefNode(FuncDefNode):
defining = self.body is not None, modifiers = self.modifiers) defining = self.body is not None, modifiers = self.modifiers)
self.entry.inline_func_in_pxd = self.inline_in_pxd self.entry.inline_func_in_pxd = self.inline_in_pxd
self.return_type = type.return_type self.return_type = type.return_type
if self.return_type.is_array and visibility != 'extern': if self.return_type.is_array and self.visibility != 'extern':
error(self.pos, error(self.pos,
"Function cannot return an array") "Function cannot return an array")
......
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