[vala/0.48] girparser: Warn about conflicting signals and properties
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] girparser: Warn about conflicting signals and properties
- Date: Wed, 22 Jul 2020 11:53:33 +0000 (UTC)
commit eae1d23c0ed45483b15cabce31d8d33b8f5c23d9
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 ffdf31013..4e9bdeedc 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]