]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix warning when defining abstract properties
authorJuerg Billeter <j@bitron.ch>
Sun, 29 Jul 2007 22:11:44 +0000 (22:11 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 29 Jul 2007 22:11:44 +0000 (22:11 +0000)
2007-07-30  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix warning when defining abstract
  properties

svn path=/trunk/; revision=413

ChangeLog
vala/valasemanticanalyzer.vala

index 29b9652c5ae194da788423010f71720d6595295e..a02804cd8e794d33690abb607d89795f041ad1aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-30  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valasemanticanalyzer.vala: fix warning when defining abstract
+         properties
+
 2007-07-29  Raffaele Sandrini  <raffaele@sandrini.ch>
 
        * gobject/valacodegenerator.vala: mini fix: remove unnecessray cast in
index a6445e83ac7db10d12159314e17ec9dfb1952a84..23cc7a705c02f0d2ef0865e9a30c2b91c12d05fd 100644 (file)
@@ -606,7 +606,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                                }
                        }
 
-                       if (acc.writable || acc.construction) {
+                       if (acc.body != null && (acc.writable || acc.construction)) {
                                acc.value_parameter = new FormalParameter ("value", acc.prop.type_reference);
                                acc.body.scope.add (acc.value_parameter.name, acc.value_parameter);
                        }