Detect struct S(ty = val);
Emit a specific error for unsupported default field value syntax in tuple structs.
This commit is contained in:
parent
9ac95c10c0
commit
550bcae8aa
6 changed files with 63 additions and 11 deletions
|
@ -53,6 +53,9 @@ ast_lowering_closure_cannot_be_static = closures cannot be static
|
|||
ast_lowering_coroutine_too_many_parameters =
|
||||
too many parameters for a coroutine (expected 0 or 1 parameters)
|
||||
|
||||
ast_lowering_default_field_in_tuple = default field in tuple struct
|
||||
.label = default fields are only supported on structs
|
||||
|
||||
ast_lowering_does_not_support_modifiers =
|
||||
the `{$class_name}` register class does not support template modifiers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue