vala r1291 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1291 - in trunk: . vala
- Date: Mon, 21 Apr 2008 20:09:29 +0100 (BST)
Author: juergbi
Date: Mon Apr 21 19:09:28 2008
New Revision: 1291
URL: http://svn.gnome.org/viewvc/vala?rev=1291&view=rev
Log:
2008-04-21 Juerg Billeter <j bitron ch>
* vala/valasemanticanalyzer.vala: allow assigning construct-only
properties in constructors, fixes bug 529222
Modified:
trunk/ChangeLog
trunk/vala/valasemanticanalyzer.vala
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Mon Apr 21 19:09:28 2008
@@ -3038,7 +3038,7 @@
var prop = (Property) ma.symbol_reference;
if (prop.set_accessor == null
- || (!prop.set_accessor.writable && !(find_current_method () is CreationMethod))) {
+ || (!prop.set_accessor.writable && !(find_current_method () is CreationMethod || is_in_constructor ()))) {
ma.error = true;
Report.error (ma.source_reference, "Property `%s' is read-only".printf (prop.get_full_name ()));
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]