mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Cannot use void as a generic parameter #1546. Interfaces now support .ptr and .type directly without casting to any.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user