diff options
author | Florian Brosch <flo.brosch@gmail.com> | 2012-01-24 21:02:28 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-01-26 21:11:39 +0100 |
commit | 8b31cfa4858482a6eab283d83c9891240b0e17ee (patch) | |
tree | daa6e1ba2669cfc68e6e39c64a57400b1f121c96 /vala/valatypeofexpression.vala | |
parent | 8f2055b1163e02e1914384983608cc836b2907f8 (diff) | |
download | vala-8b31cfa4858482a6eab283d83c9891240b0e17ee.tar.gz |
Report warning for type arguments in typeof expressions
Diffstat (limited to 'vala/valatypeofexpression.vala')
-rw-r--r-- | vala/valatypeofexpression.vala | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |