Ternary Expr; lbAddr extra; Phi node support

This commit is contained in:
gingerBill
2020-02-06 23:33:41 +00:00
parent 09e1cf0737
commit 7d9600b740
5 changed files with 1037 additions and 150 deletions

View File

@@ -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;