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

Cpp: Make a specialized scope correctly set the parent type

parent 13093b92
......@@ -2624,6 +2624,7 @@ class CppClassScope(Scope):
def specialize(self, values, type_entry):
scope = CppClassScope(self.name, self.outer_scope)
scope.type = type_entry
type_entry.set_scope(scope)
for entry in self.entries.values():
if entry.is_type:
scope.declare_type(entry.name,
......
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