diff options
Diffstat (limited to 'vala/valaelementaccess.vala')
-rw-r--r-- | vala/valaelementaccess.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaelementaccess.vala b/vala/valaelementaccess.vala index 8f9bd165f..08fdeb34e 100644 --- a/vala/valaelementaccess.vala +++ b/vala/valaelementaccess.vala @@ -144,7 +144,7 @@ public class Vala.ElementAccess : Expression { } } else if (pointer_type != null && !pointer_type.base_type.is_reference_type_or_type_parameter ()) { value_type = pointer_type.base_type.copy (); - } else if (container_type == analyzer.string_type.data_type) { + } else if (analyzer.context.profile == Profile.GOBJECT && container_type == analyzer.string_type.data_type) { if (get_indices ().size != 1) { error = true; Report.error (source_reference, "Element access with more than one dimension is not supported for strings"); |