Skip to content

Commit 2a17de7

Browse files
committed
Emit single named return type with adornments
Put it through `print_to_string`, which unlike `.to_string` also adds `cpp2::` qualifications for names like `i164`.
1 parent e547d1f commit 2a17de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/to_cpp1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5784,7 +5784,7 @@ class cppfront
57845784
printer.print_extra(
57855785
"\nusing "
57865786
+ func_name + "_ret = "
5787-
+ r->parameters[0]->declaration->get_object_type()->to_string()
5787+
+ print_to_string( *r->parameters[0]->declaration->get_object_type() )
57885788
+ ";"
57895789
);
57905790
}

0 commit comments

Comments
 (0)