2008-09-16 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala:
Check for structs without fields, patch by Jared Moore,
fixes bug 543562
svn path=/trunk/; revision=1775
+2008-09-16 Jürg Billeter <j@bitron.ch>
+
+ * vala/valasemanticanalyzer.vala:
+
+ Check for structs without fields, patch by Jared Moore,
+ fixes bug 543562
+
2008-09-16 Jürg Billeter <j@bitron.ch>
* vapi/enchant.vapi:
st.accept_children (this);
+ if (!st.external && st.get_base_types ().size == 0 && st.get_fields ().size == 0) {
+ Report.error (st.source_reference, "structs cannot be empty");
+ }
+
current_symbol = current_symbol.parent_symbol;
current_struct = null;
}