Commit cc588471 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.

--HG--
extra : transplant_source : E%10%AA%AD%85%E2%FE%FA%E0%3C%D6%5D-%FE%CB%1D%0B%93%FB%8E
parent a53cb94f
...@@ -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