mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix correct ? after optional function name when reporting type errors.
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
- Inlining a const as an lvalue would take the wrong path and corrupt the expression node.
|
||||
- Grabbing (missing) methods on function pointers would cause crash #2434.
|
||||
- Fix alignment on jump table.
|
||||
- Fix correct `?` after optional function name when reporting type errors.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `==` to `Pair`, `Triple` and TzDateTime. Add print to `Pair` and `Triple`.
|
||||
|
||||
@@ -138,7 +138,7 @@ void type_append_name_to_scratch(Type *type)
|
||||
{
|
||||
scratch_buffer_append("void");
|
||||
}
|
||||
scratch_buffer_append_char('!');
|
||||
scratch_buffer_append_char('?');
|
||||
break;
|
||||
case TYPE_SLICE:
|
||||
type_append_name_to_scratch(type->array.base);
|
||||
|
||||
Reference in New Issue
Block a user