Cannot use void as a generic parameter #1546. Interfaces now support .ptr and .type directly without casting to any.

This commit is contained in:
Christoffer Lerno
2024-10-11 12:10:35 +02:00
parent 1adad860f4
commit 8e24f15d58
6 changed files with 57 additions and 7 deletions

View File

@@ -4080,9 +4080,8 @@ static bool sema_generate_parameterized_name_to_scratch(SemaContext *context, Mo
switch (type_storage_type(type))
{
case STORAGE_NORMAL:
break;
case STORAGE_VOID:
RETURN_SEMA_ERROR(type_info, "A 'void' type cannot be used as a parameter type.");
break;
case STORAGE_WILDCARD:
RETURN_SEMA_ERROR(type_info, "The type is undefined and cannot be used as a parameter type.");
case STORAGE_COMPILE_TIME: