diff options
author | Princeton Ferro <princetonferro@gmail.com> | 2022-01-24 22:32:01 -0500 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-01-25 12:25:30 +0100 |
commit | 44195a02c9d26453dc698282deb4947425a4b0b1 (patch) | |
tree | 522a7c4d58d1f831e2ef16a2451b9acf5ca518e4 /vala/valaforeachstatement.vala | |
parent | 0db2ebd9035c95efa062ecab310bca88a70d8faf (diff) | |
download | vala-44195a02c9d26453dc698282deb4947425a4b0b1.tar.gz |
vala: Add foreach statement support for GLib.Sequence
It is now possible to use foreach with a GLib.Sequence
Diffstat (limited to 'vala/valaforeachstatement.vala')
-rw-r--r-- | vala/valaforeachstatement.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vala/valaforeachstatement.vala b/vala/valaforeachstatement.vala index 4daddcb84..f491c037f 100644 --- a/vala/valaforeachstatement.vala +++ b/vala/valaforeachstatement.vala @@ -183,7 +183,8 @@ public class Vala.ForeachStatement : Block { } else if (context.profile == Profile.GOBJECT && (collection_type.compatible (context.analyzer.glist_type) || collection_type.compatible (context.analyzer.gslist_type) || collection_type.compatible (context.analyzer.genericarray_type) - || collection_type.compatible (context.analyzer.garray_type))) { + || collection_type.compatible (context.analyzer.garray_type) + || collection_type.compatible (context.analyzer.gsequence_type))) { if (collection_type.get_type_arguments ().size != 1) { error = true; Report.error (collection.source_reference, "missing type argument for collection"); |