Commit 594d66ef authored by gsamain's avatar gsamain

Remove unnecessary check on cypclass variable declaration

parent 2153ff07
......@@ -724,7 +724,7 @@ class Scope(object):
cname = name
else:
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)
entry = self.declare(name, cname, type, pos, visibility)
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