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:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user