From: Florian Brosch Date: Tue, 24 Jan 2012 20:02:28 +0000 (+0100) Subject: Report warning for type arguments in typeof expressions X-Git-Tag: 0.15.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b31cfa4858482a6eab283d83c9891240b0e17ee;p=thirdparty%2Fvala.git Report warning for type arguments in typeof expressions --- diff --git a/vala/valatypeofexpression.vala b/vala/valatypeofexpression.vala index 9efb1f55c..1154016af 100644 --- a/vala/valatypeofexpression.vala +++ b/vala/valatypeofexpression.vala @@ -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; }