]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
FIXME Implicit flatten array in foreach wip/transform-ast
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 31 Mar 2020 19:57:22 +0000 (21:57 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 1 Apr 2020 08:17:51 +0000 (10:17 +0200)
tests/control-flow/foreach.vala

index 0646c2d9a2498c3537c222c7fae260f13115cca1..188964317e75a12374a01b0afaf90e5234d74a73 100644 (file)
@@ -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 };