]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Allow direct access to array-typed members in POSIX profile
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 19 Oct 2019 16:44:19 +0000 (18:44 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 19 Oct 2019 16:45:33 +0000 (18:45 +0200)
vala/valamemberaccess.vala

index 0c10943015e1cd0d2ed480d5dcbeb937770714b9..927e57531d2cdc0905b144b3433ce6bdcf732ee6 100644 (file)
@@ -904,7 +904,7 @@ public class Vala.MemberAccess : Expression {
                }
 
                var this_access = inner.symbol_reference is Parameter && inner.symbol_reference.name == "this";
-               var struct_or_array = (inner.value_type is StructValueType && !inner.value_type.nullable) || (CodeContext.get ().profile == Profile.GOBJECT && inner.value_type is ArrayType);
+               var struct_or_array = (inner.value_type is StructValueType && !inner.value_type.nullable) || inner.value_type is ArrayType;
 
                unowned MemberAccess? ma = inner as MemberAccess;
                if (ma == null && struct_or_array && inner is PointerIndirection) {