2008-07-07 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala:
Allow non-external methods in VAPI files
svn path=/trunk/; revision=1678
+2008-07-07 Jürg Billeter <j@bitron.ch>
+
+ * vala/valasemanticanalyzer.vala:
+
+ Allow non-external methods in VAPI files
+
2008-07-05 Jürg Billeter <j@bitron.ch>
* vala/valaattributeprocessor.vala:
if (m.is_abstract && m.body != null) {
Report.error (m.source_reference, "Abstract methods cannot have bodies");
- } else if ((m.external || current_source_file.external_package) && m.body != null) {
+ } else if (m.external && m.body != null) {
Report.error (m.source_reference, "Extern methods cannot have bodies");
- } else if (!m.is_abstract && !m.external && !current_source_file.external_package && m.body == null) {
+ } else if (!m.is_abstract && !m.external && m.body == null) {
Report.error (m.source_reference, "Non-abstract, non-extern methods must have bodies");
}