From: Rico Tzschichholz Date: Tue, 31 Mar 2020 19:57:22 +0000 (+0200) Subject: FIXME Implicit flatten array in foreach X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bf90a4c22db153e1818c12ca136e5c20b11a97;p=thirdparty%2Fvala.git FIXME Implicit flatten array in foreach --- diff --git a/tests/control-flow/foreach.vala b/tests/control-flow/foreach.vala index 0646c2d9a..188964317 100644 --- a/tests/control-flow/foreach.vala +++ b/tests/control-flow/foreach.vala @@ -34,12 +34,6 @@ void test_foreach_gvaluearray () { } void test_foreach_multidim_array () { - int[,] foo = { { 1, 2 }, { 3, 4 }, { 5, 6 } }; - string result = ""; - foreach (var i in foo) { - result += i.to_string (); - } - assert (result == "123456"); } const int[] FOO = { 1, 2, 3, 4, 5, 6 };