From: Jürg Billeter Date: Wed, 2 Sep 2009 09:05:26 +0000 (+0200) Subject: Struct instance fields are always public X-Git-Tag: 0.7.6~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4996182221c59e72723cb2359aed23c31b19537;p=thirdparty%2Fvala.git Struct instance fields are always public --- diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 15c84a2de..dd561834a 100644 --- a/vala/valastruct.vala +++ b/vala/valastruct.vala @@ -141,6 +141,9 @@ public class Vala.Struct : TypeSymbol { * @param f a field */ public void add_field (Field f) { + // TODO report error when `private' or `protected' has been specified + f.access = SymbolAccessibility.PUBLIC; + fields.add (f); scope.add (f.name, f); }