2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when trying to set
construct-only properties
svn path=/trunk/; revision=1278
2008-04-19 Jürg Billeter <j@bitron.ch>
+ * vala/valasemanticanalyzer.vala: report error when trying to set
+ construct-only properties
+
+2008-04-19 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodeassignmentbinding.vala: fix D-Bus signal
handlers, fixes bug 528937
} else if (ma.symbol_reference is Property) {
var prop = (Property) ma.symbol_reference;
- if (prop.set_accessor == null) {
+ if (prop.set_accessor == null
+ || (!prop.set_accessor.writable && !(find_current_method () is CreationMethod))) {
ma.error = true;
Report.error (ma.source_reference, "Property `%s' is read-only".printf (prop.get_full_name ()));
return;