Commit 4484a4d9 authored by Xavier Thompson's avatar Xavier Thompson

Let 'new' expression return 'iso~' cypclasses

parent 11915abb
......@@ -1881,6 +1881,8 @@ class NewExprNode(AtomicExprNode):
self.type = error_type
return
self.cpp_check(env)
if type.is_cyp_class:
type = PyrexTypes.cyp_class_qualified_type(type, 'iso~')
constructor = type.get_constructor(self.pos)
self.class_type = type
self.entry = constructor
......
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