From: Florian Brosch Date: Tue, 24 Jan 2012 20:07:50 +0000 (+0100) Subject: Report warning for type arguments in type check expressions X-Git-Tag: 0.15.1~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb18370fc70efe1e0b9c935b7032970fafd36ca3;p=thirdparty%2Fvala.git Report warning for type arguments in type check expressions --- diff --git a/vala/valatypecheck.vala b/vala/valatypecheck.vala index de3d30a29..22147334a 100644 --- a/vala/valatypecheck.vala +++ b/vala/valatypecheck.vala @@ -116,6 +116,10 @@ public class Vala.TypeCheck : Expression { return false; } + if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) { + Report.warning (_data_type.source_reference, "Type argument list has no effect"); + } + value_type = context.analyzer.bool_type; return !error;