Commit ee4720a7 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Remove unnecessary check on cypclass variable declaration

parent de4ed1c2
......@@ -751,7 +751,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