diff options
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valaforeachstatement.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valaforeachstatement.vala b/vala/valaforeachstatement.vala index 84370e5b0..69d49eccb 100644 --- a/vala/valaforeachstatement.vala +++ b/vala/valaforeachstatement.vala @@ -194,6 +194,8 @@ public class Vala.ForeachStatement : Block { return check_without_iterator (context, collection_type, collection_type.get_type_arguments ().get (0)); } else if (context.profile == Profile.GOBJECT && collection_type.compatible (context.analyzer.gvaluearray_type)) { return check_without_iterator (context, collection_type, context.analyzer.gvalue_type); + } else if (context.profile == Profile.GOBJECT && collection_type.compatible (context.analyzer.string_type)) { + return check_without_iterator (context, collection_type, context.analyzer.unichar_type); } else { return check_with_iterator (context, collection_type); } |