mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Constrain optional fields
This commit is contained in:
parent
1bdfe578bd
commit
7330e82f75
5 changed files with 39 additions and 10 deletions
|
@ -250,7 +250,7 @@ fn constrain_pattern(
|
|||
|
||||
RecordField::Required(pat_type)
|
||||
}
|
||||
DestructType::Optional(_var) => {
|
||||
DestructType::Optional(_expr_var, _loc_expr) => {
|
||||
todo!("Add a constraint for the default value.");
|
||||
|
||||
// RecordField::Optional(pat_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue