]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Accept external property accessors without body
authorJürg Billeter <j@bitron.ch>
Mon, 17 Aug 2009 13:16:26 +0000 (15:16 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 17 Aug 2009 13:16:26 +0000 (15:16 +0200)
vala/valaparser.vala

index f6c9d6fe07cc08a9e9435a51f9652ec96b1a3409..78d1581200e416d3e5e845ed3db4038c845a549c 100644 (file)
@@ -2370,7 +2370,7 @@ public class Vala.Parser : CodeVisitor {
                }
                expect (TokenType.CLOSE_BRACE);
 
-               if (!prop.is_abstract && !scanner.source_file.external_package) {
+               if (!prop.is_abstract && !prop.external) {
                        bool empty_get = (prop.get_accessor != null && prop.get_accessor.body == null);
                        bool empty_set = (prop.set_accessor != null && prop.set_accessor.body == null);