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

Remove unnecessary check on cypclass variable declaration

parent 2dae64d6
...@@ -756,7 +756,7 @@ class Scope(object): ...@@ -756,7 +756,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