mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Fix test, fix type name.
This commit is contained in:
@@ -780,7 +780,7 @@ static Type *type_generate_optional(Type *optional_type, bool canonical)
|
||||
Type *optional = optional_type->type_cache[OPTIONAL_OFFSET];
|
||||
if (optional == NULL)
|
||||
{
|
||||
optional = type_new(TYPE_OPTIONAL, str_printf("%s!", optional_type->name));
|
||||
optional = type_new(TYPE_OPTIONAL, str_printf("%s?", optional_type->name));
|
||||
optional->pointer = optional_type;
|
||||
optional_type->type_cache[OPTIONAL_OFFSET] = optional;
|
||||
if (optional_type == optional_type->canonical)
|
||||
|
||||
Reference in New Issue
Block a user