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

@@ -36,6 +36,7 @@
- The `%s` would not properly print function pointers. - The `%s` would not properly print function pointers.
- Compiler crash when passing an untyped list as an argument to `assert` #2108. - Compiler crash when passing an untyped list as an argument to `assert` #2108.
- `@ensure` should be allowed to read "out" variables. #2107 - `@ensure` should be allowed to read "out" variables. #2107
- Error message for casting generic to incompatible type does not work properly with nested generics #1953
### Stdlib changes ### Stdlib changes
- Hash functions for integer vectors and arrays. - Hash functions for integer vectors and arrays.

View File

@@ -4757,6 +4757,10 @@ static bool sema_generate_parameterized_name_to_scratch(SemaContext *context, Mo
else else
{ {
scratch_buffer_append(type->name); 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 else