2008-04-07 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: check accessiblity of property
types, fixes bug 512404
svn path=/trunk/; revision=1171
2008-04-07 Jürg Billeter <j@bitron.ch>
+ * vala/valasemanticanalyzer.vala: check accessiblity of property
+ types, fixes bug 512404
+
+2008-04-07 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodeassignmentbinding.vala: fix element access
assignment with pointers, fixes bug 519933
prop.accept_children (this);
+ // check whether property type is at least as accessible as the property
+ if (!is_type_accessible (prop, prop.type_reference)) {
+ prop.error = true;
+ Report.error (prop.source_reference, "property type `%s` is less accessible than property `%s`".printf (prop.type_reference.to_string (), prop.get_full_name ()));
+ return;
+ }
+
/* abstract/virtual properties using reference types without
* reference counting need to transfer ownership of their
* return values because of limitations in the GObject property