mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Merge pull request #3736 from rtfeldman/i3687
Creation of a record whose type has an optional value is an error
This commit is contained in:
commit
0798f787c5
18 changed files with 189 additions and 27 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