aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-02-06 23:33:41 +0000
committergingerBill <bill@gingerbill.org>2020-02-06 23:33:41 +0000
commit7d9600b740aa815c0eaa8a5424e7949a2ac2963e (patch)
treef547c874185ec323f60e773acee85619f67f9cbc /src/types.cpp
parent09e1cf0737e9fd950ca63f94fe3d9da62ef48ef9 (diff)
Ternary Expr; lbAddr extra; Phi node support
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 2afba733c..73023001a 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -3421,7 +3421,13 @@ gbString write_type_to_string(gbString str, Type *type) {
str = gb_string_appendc(str, ")");
if (type->Proc.results) {
str = gb_string_appendc(str, " -> ");
+ if (type->Proc.results->Tuple.variables.count > 1) {
+ str = gb_string_appendc(str, "(");
+ }
str = write_type_to_string(str, type->Proc.results);
+ if (type->Proc.results->Tuple.variables.count > 1) {
+ str = gb_string_appendc(str, ")");
+ }
}
break;