]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Warn when virtual methods don't match wrapper methods
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 21 Oct 2011 16:05:09 +0000 (18:05 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:38:21 +0000 (14:38 +0100)
vala/valagirparser.vala

index f3a47280767aabcf20c032dfa4add403591498ae..21b63d7173e88f92c27ee61fd8ed5859ed513203 100644 (file)
@@ -789,6 +789,9 @@ public class Vala.GirParser : CodeVisitor {
                                                                        }
                                                                }
                                                                if (!different_invoker) {
+                                                                       if (attr != null) {
+                                                                               Report.warning (symbol.source_reference, "Virtual method `%s' conflicts with method of the same name".printf (get_full_name ()));
+                                                                       }
                                                                        node.merged = true;
                                                                }
                                                        }