Skip to content

Commit 6cbfb5a

Browse files
committed
Swift cppgen: emit final trap before bases
1 parent a7129c1 commit 6cbfb5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/codegen/templates/cpp_classes.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ struct {{name}}{{#final}} : Binding<{{name}}Tag>{{#bases}}, {{ref.name}}{{/bases
2626

2727
protected:
2828
void emit({{^final}}TrapLabel<{{name}}Tag> id, {{/final}}std::ostream& out) const {
29-
{{#bases}}
30-
{{ref.name}}::emit(id, out);
31-
{{/bases}}
3229
{{#trap_name}}
3330
out << {{.}}{{trap_affix}}{id{{#single_fields}}, {{name}}{{/single_fields}}} << '\n';
3431
{{/trap_name}}
32+
{{#bases}}
33+
{{ref.name}}::emit(id, out);
34+
{{/bases}}
3535
{{#fields}}
3636
{{#is_optional}}
3737
{{^is_repeated}}

0 commit comments

Comments
 (0)