Error message for casting generic to incompatible type does not work properly with nested generics #1953

This commit is contained in:
Christoffer Lerno
2025-04-27 00:40:43 +02:00
parent 246957b8bd
commit 8ac02a28cc
2 changed files with 5 additions and 0 deletions

View File

@@ -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