Commit 176e356f authored by Robert Bradshaw's avatar Robert Bradshaw

Fix for cdef extern classes

parent 7c203ae4
...@@ -2003,7 +2003,7 @@ class CClassDefNode(StatNode, BlockNode): ...@@ -2003,7 +2003,7 @@ class CClassDefNode(StatNode, BlockNode):
else: else:
self.base_type = base_class_entry.type self.base_type = base_class_entry.type
has_body = self.body is not None has_body = self.body is not None
if self.module_name: if self.module_name and self.visibility != 'extern':
module_path = self.module_name.split(".") module_path = self.module_name.split(".")
home_scope = env.find_imported_module(module_path, self.pos) home_scope = env.find_imported_module(module_path, self.pos)
if not home_scope: if not home_scope:
......
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