vala r1146 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1146 - in trunk: . vala
- Date: Fri, 21 Mar 2008 19:07:42 +0000 (GMT)
Author: juergbi
Date: Fri Mar 21 19:07:42 2008
New Revision: 1146
URL: http://svn.gnome.org/viewvc/vala?rev=1146&view=rev
Log:
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
Modified:
trunk/ChangeLog
trunk/vala/valasemanticanalyzer.vala
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Fri Mar 21 19:07:42 2008
@@ -629,6 +629,14 @@
}
}
}
+
+ /* 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]