diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-11-14 23:39:52 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-11-14 23:39:52 +0100 |
| commit | 9b4b13e0d9030bb21c86eea6c4ba00bf4d91f0a0 (patch) | |
| tree | dd1c8fa2336b098d6380e579125d01ac8711a3c6 /include | |
| parent | 7ab6e1021611cc6913ee4ab5faf1b31f928a65e9 (diff) | |
| download | elna-9b4b13e0d9030bb21c86eea6c4ba00bf4d91f0a0.tar.gz | |
Add arity check for generic parameters
Diffstat (limited to 'include')
| -rw-r--r-- | include/elna/boot/type_check.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/elna/boot/type_check.h b/include/elna/boot/type_check.h index 3774311..ae06749 100644 --- a/include/elna/boot/type_check.h +++ b/include/elna/boot/type_check.h @@ -277,6 +277,8 @@ namespace elna::boot static bool is_equality_compatible(const type& left, const type& right); void validate_condition(const expression& condition); + void check_generic_arity(const source_position position, const std::string& name, + const std::shared_ptr<generic_type>& generic, const std::size_t argument_count); void check_arguments(const named_expression& reference, const std::vector<type>& arguments, const argument_rule rule); void check_parameters_used(const source_position position, const std::string& name, |
