Commit 47f9a727 authored by scoder's avatar scoder

Merge pull request #62 from armon/patch-1

Fixing bug which would reference an unbound local variable
parents 787701b6 e25b4200
...@@ -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