[vala] girparser: Warn when virtual methods don't match wrapper methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Warn when virtual methods don't match wrapper methods
- Date: Fri, 21 Oct 2011 16:30:55 +0000 (UTC)
commit 712b8f23c42ef6aa95a4510318857d1b8580198b
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Oct 21 18:05:09 2011 +0200
girparser: Warn when virtual methods don't match wrapper methods
vala/valagirparser.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index f3a4728..21b63d7 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -789,6 +789,9 @@ public class Vala.GirParser : CodeVisitor {
}
}
if (!different_invoker) {
+ if (attr != null) {
+ Report.warning (symbol.source_reference, "Virtual method `%s' conflicts with method of the same name".printf (get_full_name ()));
+ }
node.merged = true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]