[vala] dova: Support string element access
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Support string element access
- Date: Sat, 26 Jun 2010 04:42:36 +0000 (UTC)
commit be4c15c71391a77d22c8af7def8440180ba584f2
Author: Jürg Billeter <j bitron ch>
Date: Sat Jun 26 06:40:43 2010 +0200
dova: Support string element access
vala/valaelementaccess.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaelementaccess.vala b/vala/valaelementaccess.vala
index 8f9bd16..08fdeb3 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]