mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Error message for casting generic to incompatible type does not work properly with nested generics #1953
This commit is contained in:
@@ -4757,6 +4757,10 @@ static bool sema_generate_parameterized_name_to_scratch(SemaContext *context, Mo
|
||||
else
|
||||
{
|
||||
scratch_buffer_append(type->name);
|
||||
if (type_is_user_defined(type) && type->decl->unit->module->generic_suffix)
|
||||
{
|
||||
scratch_buffer_append(type->decl->unit->module->generic_suffix);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user