[vala] Report error if type args were provided for a method without type params
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Report error if type args were provided for a method without type params
- Date: Mon, 7 Nov 2011 11:03:20 +0000 (UTC)
commit 61431f8c7ff2ccf8199834c89bd5bf31aab633c6
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Nov 7 11:01:18 2011 +0100
Report error if type args were provided for a method without type params
Fixes bug 663534.
vala/valamethodcall.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index c602142..f0e9585 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -339,7 +339,7 @@ public class Vala.MethodCall : Expression {
}
}
- if (m != null && m.get_type_parameters ().size > 0) {
+ if (m != null) {
var ma = (MemberAccess) call;
int n_type_params = m.get_type_parameters ().size;
int n_type_args = ma.get_type_arguments ().size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]