Commit 55ac39ee authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fix broken error reporting for functions in pxds

parent 5748aa14
...@@ -239,7 +239,6 @@ class PxdPostParse(CythonTransform): ...@@ -239,7 +239,6 @@ class PxdPostParse(CythonTransform):
ok = True ok = True
for stat in node.body.stats: for stat in node.body.stats:
if not isinstance(stat, CVarDefNode): if not isinstance(stat, CVarDefNode):
self.context.error("C function definition not allowed here")
ok = False ok = False
break break
node = CVarDefNode(node.pos, node = CVarDefNode(node.pos,
......
cimport e_func_in_pxd_support
_ERRORS = u"""
1:5: function definition not allowed here
"""
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