From 9b4b13e0d9030bb21c86eea6c4ba00bf4d91f0a0 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 14 Nov 2026 23:39:52 +0100 Subject: Add arity check for generic parameters --- include/elna/boot/type_check.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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, const std::size_t argument_count); void check_arguments(const named_expression& reference, const std::vector& arguments, const argument_rule rule); void check_parameters_used(const source_position position, const std::string& name, -- cgit v1.2.3