]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Report error if type args were provided for a method without type params
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 7 Nov 2011 10:01:18 +0000 (11:01 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 7 Nov 2011 10:02:00 +0000 (11:02 +0100)
Fixes bug 663534.

vala/valamethodcall.vala

index c60214222973537bde3f768d98fee2144418e7bf..f0e9585f7f0e3540ba450441588a16ce0bc86d5f 100644 (file)
@@ -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;