[vala/0.40] girparser: Warn about conflicting signals and properties
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] girparser: Warn about conflicting signals and properties
- Date: Thu, 30 Jul 2020 11:02:58 +0000 (UTC)
commit eb2f35d5f9c7cb2414c8ba29006eeae2adcf49b1
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 a9f7a4ac7..18d2d7a0b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -980,6 +980,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]