Commit a3f3c84c authored by gsamain's avatar gsamain

Remove unnecessary check on cypclass variable declaration

parent 5fcc6703
...@@ -723,7 +723,7 @@ class Scope(object): ...@@ -723,7 +723,7 @@ class Scope(object):
cname = name cname = name
else: else:
cname = self.mangle(Naming.var_prefix, name) cname = self.mangle(Naming.var_prefix, name)
if type.is_cpp_class and visibility != 'extern': if type.is_cpp_class and not type.is_cyp_class and visibility != 'extern':
type.check_nullary_constructor(pos) type.check_nullary_constructor(pos)
entry = self.declare(name, cname, type, pos, visibility) entry = self.declare(name, cname, type, pos, visibility)
entry.is_variable = 1 entry.is_variable = 1
......
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