From b5f1cf80a60f6d48c5cc64304f9a9de7a11b70be Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 12 Jul 2021 10:55:30 +0300 Subject: [PATCH] ci: fix regression bug in formatting of go_array_wait_test.v (caused by 974737f) --- vlib/v/ast/types.v | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vlib/v/ast/types.v b/vlib/v/ast/types.v index d6f7fb7eeb..203daffd5c 100644 --- a/vlib/v/ast/types.v +++ b/vlib/v/ast/types.v @@ -999,8 +999,10 @@ pub fn (t &Table) type_to_str_using_aliases(typ Type, import_aliases map[string] return 'void' } .thread { - res = 'thread ' + - t.type_to_str_using_aliases(sym.thread_info().return_type, import_aliases) + rtype := sym.thread_info().return_type + if rtype != 1 { + res = 'thread ' + t.type_to_str_using_aliases(rtype, import_aliases) + } } .alias, .any, .sum_type, .interface_, .size_t, .aggregate, .placeholder, .enum_ { res = t.shorten_user_defined_typenames(res, import_aliases)