diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-15 12:02:21 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-15 12:22:54 +0200 |
commit | ba0d8e95c28f299170766c98ec4d8bf451da92d1 (patch) | |
tree | e46e132ba3216e82854d8b3cc27f0a59a7d43256 /vala/valaobjecttype.vala | |
parent | 5155348daf224f1ce3fe9a9432168ad6db9210f9 (diff) | |
download | vala-ba0d8e95c28f299170766c98ec4d8bf451da92d1.tar.gz |
vala: More thorough check of ValueType and set CodeNode.error on failure
Diffstat (limited to 'vala/valaobjecttype.vala')
-rw-r--r-- | vala/valaobjecttype.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valaobjecttype.vala b/vala/valaobjecttype.vala index 89a8bfe3f..2de10d5a6 100644 --- a/vala/valaobjecttype.vala +++ b/vala/valaobjecttype.vala @@ -100,11 +100,13 @@ public class Vala.ObjectType : ReferenceType { public override bool check (CodeContext context) { if (!type_symbol.check (context)) { + error = true; return false; } // check whether there is the expected amount of type-arguments if (!check_type_arguments (context, true)) { + error = true; return false; } |