diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-21 13:53:42 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-21 19:14:10 +0100 |
commit | 9c281736c1ddbe42392716a385dae951b8e4e6d6 (patch) | |
tree | 5e7c9455b78523a6f1e60d91d8052a5b63e874eb /vala | |
parent | 8260ce7efa16e84b51bae26de964d8797ac8171f (diff) | |
download | vala-9c281736c1ddbe42392716a385dae951b8e4e6d6.tar.gz |
vala: Use DataType.get_type_arguments()
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valatypecheck.vala | 2 | ||||
-rw-r--r-- | vala/valatypeofexpression.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vala/valatypecheck.vala b/vala/valatypecheck.vala index cb0469a6f..904311d54 100644 --- a/vala/valatypecheck.vala +++ b/vala/valatypecheck.vala @@ -116,7 +116,7 @@ public class Vala.TypeCheck : Expression { return false; } - if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) { + if (context.profile == Profile.GOBJECT && type_reference.has_type_arguments ()) { Report.warning (_data_type.source_reference, "Type argument list has no effect"); } diff --git a/vala/valatypeofexpression.vala b/vala/valatypeofexpression.vala index 9b0506ba1..5aa28e1fd 100644 --- a/vala/valatypeofexpression.vala +++ b/vala/valatypeofexpression.vala @@ -82,7 +82,7 @@ public class Vala.TypeofExpression : Expression { value_type = context.analyzer.type_type; - if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) { + if (context.profile == Profile.GOBJECT && type_reference.has_type_arguments ()) { Report.warning (_data_type.source_reference, "Type argument list without effect"); } |