]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Improve parameter check of "get" method meant to be used by foreach
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jun 2020 06:43:12 +0000 (08:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jun 2020 06:43:12 +0000 (08:43 +0200)
commitb4b64c9b6e0fef79371a1c446a1777feda8779f1
treeac3d4e642c89c6b9245fe1004e49a23aa00fe6ec
parentc6a4b6e95e64a6ebd2bf88d4f3c3a55b2d3f31f4
vala: Improve parameter check of "get" method meant to be used by foreach

The index-based iteration requires the "get" method to take one integer
compatible parameter. Otherwise continue checking other options.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1017
tests/methods/iterator.vala
vala/valaforeachstatement.vala