]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix incorrect warning on constructor chain up
authorJürg Billeter <j@bitron.ch>
Mon, 6 Aug 2012 13:40:37 +0000 (15:40 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 6 Aug 2012 13:44:39 +0000 (15:44 +0200)
vala/valamemberaccess.vala

index 83441f4e921ad8dee9240ea12505be4bb2d729ad..8a8f06a705812ad3d13966ace93916e532a58789 100644 (file)
@@ -786,7 +786,7 @@ public class Vala.MemberAccess : Expression {
                                check_lvalue_access ();
                        }
 
-                       if (!instance && !klass && may_access_instance_members && inner != null) {
+                       if (!instance && !klass && !(symbol_reference is CreationMethod) && may_access_instance_members && inner != null) {
                                Report.warning (source_reference, "Access to static member `%s' with an instance reference".printf (symbol_reference.get_full_name ()));
                        }