2009-01-10 Jürg Billeter <j@bitron.ch>
* vala/valafield.vala:
Report error when field type is less accessible than field
svn path=/trunk/; revision=2315
+2009-01-10 Jürg Billeter <j@bitron.ch>
+
+ * vala/valafield.vala:
+
+ Report error when field type is less accessible than field
+
2009-01-09 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala:
field_type.check (analyzer);
+ // check whether field type is at least as accessible as the field
+ if (!analyzer.is_type_accessible (this, field_type)) {
+ error = true;
+ Report.error (source_reference, "field type `%s` is less accessible than field `%s`".printf (field_type.to_string (), get_full_name ()));
+ return false;
+ }
+
process_attributes ();
if (initializer != null) {