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

Fix name of cypclass wrapper in type import call

parent 0004d6fc
......@@ -4356,6 +4356,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
module,
module_name))
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:
......
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