]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Report warning for type arguments in typeof expressions 8b31cfa4858482a6eab283d83c9891240b0e17ee
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 24 Jan 2012 20:02:28 +0000 (21:02 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 26 Jan 2012 20:11:39 +0000 (21:11 +0100)
vala/valatypeofexpression.vala

index 9efb1f55cb27e870e71405fe17e0c4f45db8d04f..1154016afe63f84bdd8c81f88ee4df78ab306cb0 100644 (file)
@@ -82,6 +82,10 @@ public class Vala.TypeofExpression : Expression {
 
                value_type = context.analyzer.type_type;
 
+               if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) {
+                       Report.warning (_data_type.source_reference, "Type argument list without effect");
+               }
+
                return !error;
        }