Commit 967c8e11 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix crash with forward declarations.

Thanks to Alok Singhal.
parent de8821f9
......@@ -1478,7 +1478,7 @@ if VALUE is not None:
def visit_CClassDefNode(self, node):
node = self.visit_ClassDefNode(node)
if node.scope and node.scope.implemented:
if node.scope and node.scope.implemented and node.body:
stats = []
for entry in node.scope.var_entries:
if entry.needs_property:
......
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