Skip to content

Commit 8046463

Browse files
committed
fix(to_cpp1): emit comma in the type-id case
1 parent 64c84a4 commit 8046463

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/to_cpp1.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3896,13 +3896,13 @@ class cppfront
38963896

38973897
auto first = true;
38983898
for (auto const& arg : n.arguments) {
3899+
if (!first) {
3900+
printer.print_cpp2(", ", n.position());
3901+
}
3902+
first = false;
38993903
if (auto x_ = std::get_if<expression_list_node::term::expression>(&arg.argument))
39003904
{
39013905
auto& x = **x_;
3902-
if (!first) {
3903-
printer.print_cpp2(", ", n.position());
3904-
}
3905-
first = false;
39063906
auto is_out = false;
39073907

39083908
if (x.pass != passing_style::in) {

0 commit comments

Comments
 (0)