mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
optional fields improvements
This commit is contained in:
parent
48aebc5c59
commit
b45b39af5e
14 changed files with 329 additions and 47 deletions
|
@ -222,6 +222,7 @@ fn to_type(solved_type: &SolvedType, free_vars: &mut FreeVars, var_store: &mut V
|
|||
let field_val = match field {
|
||||
Required(typ) => Required(to_type(&typ, free_vars, var_store)),
|
||||
Optional(typ) => Optional(to_type(&typ, free_vars, var_store)),
|
||||
Demanded(typ) => Demanded(to_type(&typ, free_vars, var_store)),
|
||||
};
|
||||
|
||||
new_fields.insert(label.clone(), field_val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue