Commit 1b7e80f6 authored by Xavier Thompson's avatar Xavier Thompson

Fix name of cypclass wrapper in type import call

parent 0004d6fc
......@@ -4356,7 +4356,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
module,
module_name))
type_name = type.name.as_c_string_literal()
if type.is_cyp_wrapper:
# the scope class name is correct but the type name is mangled
# to distinguish it from the underlying cypclass name
type_name = type.scope.class_name.as_c_string_literal()
else:
type_name = type.name.as_c_string_literal()
if condition and replacement:
code.putln("") # start in new line
......
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