Constrain optional fields

This commit is contained in:
Richard Feldman 2020-07-18 14:51:18 -04:00
parent 1bdfe578bd
commit 7330e82f75
5 changed files with 39 additions and 10 deletions

View file

@ -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)