mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
record update hints
This commit is contained in:
parent
a67fe6540c
commit
ab19529077
6 changed files with 443 additions and 55 deletions
|
@ -174,7 +174,13 @@ pub fn constrain_expr(
|
|||
let con = Lookup(
|
||||
*symbol,
|
||||
ForReason(
|
||||
Reason::RecordUpdateKeys(*symbol, fields),
|
||||
Reason::RecordUpdateKeys(
|
||||
*symbol,
|
||||
updates
|
||||
.iter()
|
||||
.map(|(key, field)| (key.clone(), field.region))
|
||||
.collect(),
|
||||
),
|
||||
record_type,
|
||||
region,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue