mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Parse explicit optional field types as rigid optionals
This commit is contained in:
parent
b69051c90e
commit
b3d4c8f09b
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ fn can_assigned_fields<'a>(
|
|||
);
|
||||
|
||||
let label = Lowercase::from(field_name.value);
|
||||
field_types.insert(label.clone(), Optional(field_type));
|
||||
field_types.insert(label.clone(), RigidOptional(field_type));
|
||||
|
||||
break 'inner label;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue