]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
check for inherited properties in construct formal parameters
authorJürg Billeter <j@bitron.ch>
Sun, 4 Mar 2007 19:00:49 +0000 (19:00 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 4 Mar 2007 19:00:49 +0000 (19:00 +0000)
2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check for inherited properties in
  construct formal parameters

svn path=/trunk/; revision=220

vala/ChangeLog
vala/vala/valasemanticanalyzer.vala

index 4438228c45a9f2ad830d5020ca1c65bf75e90f99..4346b0958ff1db24da9cc48dbd00cad7973b6a66 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-04  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valasemanticanalyzer.vala: check for inherited properties in
+         construct formal parameters
+
 2007-03-04  Jürg Billeter  <j@bitron.ch>
 
        * vala/valasemanticanalyzer.vala: don't allow interface implementations
index 240e3cb60a4a63f829bb0baa50e04ff79280fc13..34aa9a6cab33a2bd7f7e3858ec8935a285bd3cca 100644 (file)
@@ -316,9 +316,9 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                        var left = new MemberAccess.simple (p.name);
                        var right = new MemberAccess.simple (p.name);
                        
-                       /* try to lookup the requeted property */
-                       var prop_sym = current_class.symbol.lookup (p.name);
-                       if (prop_sym == null || !(prop_sym.node is Property)) {
+                       /* try to lookup the requested property */
+                       var prop_sym = symbol_lookup_inherited (current_class.symbol, p.name);
+                       if (!(prop_sym.node is Property)) {
                                p.error = true;
                                Report.error (p.source_reference, "class `%s' does not contain a property named `%s'".printf (current_class.symbol.get_full_name (), p.name));
                                return;