]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Support string element access
authorJürg Billeter <j@bitron.ch>
Sat, 26 Jun 2010 04:40:43 +0000 (06:40 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 26 Jun 2010 04:41:09 +0000 (06:41 +0200)
vala/valaelementaccess.vala

index 8f9bd165f46ab6943b7aa84abeb3b8e8cd074a7f..08fdeb34e3e0aceeee9425f64a753556c1c1521d 100644 (file)
@@ -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");