summaryrefslogtreecommitdiff
path: root/vala/valaunaryexpression.vala
diff options
context:
space:
mode:
authorSimon Werbeck <simon.werbeck@gmail.com>2016-10-02 00:20:59 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2016-10-06 14:53:40 +0200
commit78588e6cf96a6f239840f728aedc2ecf5aabf7de (patch)
treeeb0517ad3f379c0a8e4c5ee39227bf79100c53f3 /vala/valaunaryexpression.vala
parent1fcd716d3b9b3d7b740a4c488cd6a28c0e5f0414 (diff)
downloadvala-78588e6cf96a6f239840f728aedc2ecf5aabf7de.tar.gz
vala: Check accessibility of default arguments
https://bugzilla.gnome.org/show_bug.cgi?id=648030
Diffstat (limited to 'vala/valaunaryexpression.vala')
-rw-r--r--vala/valaunaryexpression.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala
index ed308417f..dfc795ceb 100644
--- a/vala/valaunaryexpression.vala
+++ b/vala/valaunaryexpression.vala
@@ -120,6 +120,10 @@ public class Vala.UnaryExpression : Expression {
return inner.is_pure ();
}
+ public override bool is_accessible (Symbol sym) {
+ return inner.is_accessible (sym);
+ }
+
bool is_numeric_type (DataType type) {
if (!(type.data_type is Struct)) {
return false;