2008-03-21 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when trying to
declare private construct properties,
patch by Daniel Silverstone, fixes bug 522685
svn path=/trunk/; revision=1146
2008-03-21 Jürg Billeter <j@bitron.ch>
+ * vala/valasemanticanalyzer.vala: report error when trying to
+ declare private construct properties,
+ patch by Daniel Silverstone, fixes bug 522685
+
+2008-03-21 Jürg Billeter <j@bitron.ch>
+
* vala/valaenum.vala, vala/valaenumvalue.vala,
vala/valainterfacewriter.vala, gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinterface.vala,
}
}
}
+
+ /* construct properties must be public */
+ if (prop.set_accessor != null && prop.set_accessor.construction) {
+ if (prop.access != SymbolAccessibility.PUBLIC) {
+ prop.error = true;
+ Report.error (prop.source_reference, "%s: construct properties must be public".printf (prop.get_full_name ()));
+ }
+ }
}
public override void visit_property_accessor (PropertyAccessor! acc) {