diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-11 13:41:48 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-17 21:02:56 +0200 |
commit | 601861eb20f7809b09998360a364e89fee1bbb49 (patch) | |
tree | 4827175fd0822b34749d9f89d4de1c4234ef014f | |
parent | e2cfa72468fe97d43756093e991a2ab6a217be99 (diff) | |
download | vala-wip/listmodel.tar.gz |
vala: Add pedantic type-argument warningwip/listmodel
-rw-r--r-- | vala/valadatatype.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala index d75eee62a..aa1df9e51 100644 --- a/vala/valadatatype.vala +++ b/vala/valadatatype.vala @@ -707,6 +707,8 @@ public abstract class Vala.DataType : CodeNode { error = true; Report.error (source_reference, "too many type arguments for `%s'", type_symbol.to_string ()); return false; + } else if (context.pedantic && n_type_args < expected_n_type_args) { + Report.warning (source_reference, "too few type arguments for `%s'", type_symbol.to_string ()); } foreach (DataType type in get_type_arguments ()) { |