mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Return an Accessor when it is canonicalized
This commit is contained in:
parent
d31544b955
commit
8ba59e035d
1 changed files with 5 additions and 1 deletions
|
@ -708,7 +708,11 @@ pub fn canonicalize_expr(
|
|||
And(vec![constraint, Eq(field_type, expected, region)]),
|
||||
);
|
||||
|
||||
(loc_expr.value, output, constraint)
|
||||
(
|
||||
Access(Box::new(loc_expr), Lowercase::from(*field).into()),
|
||||
output,
|
||||
constraint,
|
||||
)
|
||||
}
|
||||
ast::Expr::AccessorFunction(_)
|
||||
| ast::Expr::If(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue