summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-04-08 10:55:39 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-04-08 10:59:55 +0200
commite8a81d9a49ef569b632107a07e605aaa4705d347 (patch)
treee35c36436c20718ec35ba7d3dcc49474fa12f0cc /vala
parenta4dca077641a0eabdd7677b3048174f798deaf96 (diff)
downloadvala-e8a81d9a49ef569b632107a07e605aaa4705d347.tar.gz
vala: Check type-argument count of interface prerequisites
Additionally add test case for type-argument count of class base-types
Diffstat (limited to 'vala')
-rw-r--r--vala/valainterface.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index 92e5da154..91c817897 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -177,6 +177,12 @@ public class Vala.Interface : ObjectTypeSymbol {
Report.error (source_reference, "prerequisite `%s' is less accessible than interface `%s'", prerequisite_reference.to_string (), get_full_name ());
return false;
}
+
+ // check whether there is the expected amount of type-arguments
+ if (!prerequisite_reference.check_type_arguments (context)) {
+ error = true;
+ return false;
+ }
}
/* check prerequisites */