From 9c0dd5cea2a78a4b5f3e1a02df052ed405fbbf07 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 24 Apr 2026 01:32:25 +0300 Subject: [PATCH] v.tests: fix arrays: buggy result for arrays.concat/2, and a runtime panic with `-gc none` (fixes #17845) --- vlib/v/tests/fns/decompose_variadic_test.v | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vlib/v/tests/fns/decompose_variadic_test.v b/vlib/v/tests/fns/decompose_variadic_test.v index ff5b84310..5f462253c 100644 --- a/vlib/v/tests/fns/decompose_variadic_test.v +++ b/vlib/v/tests/fns/decompose_variadic_test.v @@ -36,3 +36,11 @@ fn test_decompose_variadic_generic_sumtype_array_arg() { assert (params[0] as []u8).bytestr() == 'ab' assert (params[1] as []u8).bytestr() == 'cd' } + +fn test_decompose_variadic_nested_string_array_arg() { + a := [['0']] + b := [['aa', 'bb']] + c := arrays.concat(a, ...b) + assert c == [['0'], ['aa', 'bb']] + assert c.str() == "[['0'], ['aa', 'bb']]" +} -- 2.39.5