]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Warn about conflicting signals and properties
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Jul 2020 21:23:59 +0000 (23:23 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Jul 2020 21:23:59 +0000 (23:23 +0200)
vala/valagirparser.vala

index 3b0743f249b8e3b1505a7e6aea321545a6b9e114..8526ffa1b0c545c8c3fb32b28680f3e8776b6baa 100644 (file)
@@ -981,6 +981,7 @@ public class Vala.GirParser : CodeVisitor {
                                                        // properties take precedence
                                                        node.processed = true;
                                                        node.merged = true;
+                                                       Report.warning (symbol.source_reference, "Signal `%s' conflicts with property of the same name".printf (get_full_name ()));
                                                } else if (node.symbol is Method) {
                                                        // getter in C, but not in Vala
                                                        node.merged = true;