[vala/staging] girparser: Warn about conflicting signals and properties
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] girparser: Warn about conflicting signals and properties
- Date: Fri, 17 Jul 2020 21:27:00 +0000 (UTC)
commit df001da1794536f7c5f204828ad90b4bd13533c8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Jul 17 23:23:59 2020 +0200
girparser: Warn about conflicting signals and properties
vala/valagirparser.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 3b0743f24..8526ffa1b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]