[vala/staging] vala: Allow direct access to array-typed members in POSIX profile
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Allow direct access to array-typed members in POSIX profile
- Date: Sat, 19 Oct 2019 16:46:49 +0000 (UTC)
commit 148f1d99d6b3343ce6b690d62cd0a29957877d84
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 19 18:44:19 2019 +0200
vala: Allow direct access to array-typed members in POSIX profile
vala/valamemberaccess.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index 0c1094301..927e57531 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]