mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Include param's record references
This commit is contained in:
parent
50b1a60411
commit
8604bb23b2
1 changed files with 2 additions and 1 deletions
|
@ -2404,6 +2404,7 @@ fn canonicalize_pending_value_def<'a>(
|
||||||
let (record, can_output) =
|
let (record, can_output) =
|
||||||
canonicalize_record(env, var_store, scope, loc_pattern.region, params);
|
canonicalize_record(env, var_store, scope, loc_pattern.region, params);
|
||||||
|
|
||||||
|
let references = DefReferences::Value(can_output.references.clone());
|
||||||
output.union(can_output);
|
output.union(can_output);
|
||||||
|
|
||||||
let loc_record = Loc::at(loc_pattern.region, record);
|
let loc_record = Loc::at(loc_pattern.region, record);
|
||||||
|
@ -2423,7 +2424,7 @@ fn canonicalize_pending_value_def<'a>(
|
||||||
|
|
||||||
DefOutput {
|
DefOutput {
|
||||||
output,
|
output,
|
||||||
references: DefReferences::Value(References::new()),
|
references,
|
||||||
def,
|
def,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue