[vala/wip/transform-ast: 25/25] FIXME Implicit flatten array in foreach
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform-ast: 25/25] FIXME Implicit flatten array in foreach
- Date: Wed, 1 Apr 2020 08:20:35 +0000 (UTC)
commit 86bf90a4c22db153e1818c12ca136e5c20b11a97
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 31 21:57:22 2020 +0200
FIXME Implicit flatten array in foreach
tests/control-flow/foreach.vala | 6 ------
1 file changed, 6 deletions(-)
---
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 };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]