From: Rico Tzschichholz Date: Sun, 16 Feb 2020 19:15:04 +0000 (+0100) Subject: girparser: Report a warning for conflicting class and instance methods X-Git-Tag: 0.47.91~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4985008fe38ed80218b15a0f6a3b2861cf0ea2b6;p=thirdparty%2Fvala.git girparser: Report a warning for conflicting class and instance methods --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 6719d8e08..30468323a 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -947,6 +947,9 @@ public class Vala.GirParser : CodeVisitor { } node.merged = true; } + } else if (m.is_class_member ()) { + Report.warning (symbol.source_reference, "Class method `%s' conflicts with method of the same name".printf (get_full_name ())); + node.merged = true; } } }