mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 23:13:47 +00:00
A couple hacks to get deriving of records working.. but it's working?
This commit is contained in:
parent
801803d813
commit
63adb901b4
8 changed files with 156 additions and 104 deletions
|
@ -1817,18 +1817,13 @@ impl<'a> SubsProxy<'a> {
|
|||
lambda_set_var_in_derived: Variable,
|
||||
target_rank: Rank,
|
||||
) -> Variable {
|
||||
if self.home == ModuleId::DERIVED {
|
||||
self.subs
|
||||
.get_lambda_set(lambda_set_var_in_derived)
|
||||
.ambient_function
|
||||
} else {
|
||||
let derived_module = self.derived_module.lock().unwrap();
|
||||
derived_module.copy_lambda_set_ambient_function_to_subs(
|
||||
lambda_set_var_in_derived,
|
||||
self.subs,
|
||||
target_rank,
|
||||
)
|
||||
}
|
||||
let derived_module = self.derived_module.lock().unwrap();
|
||||
derived_module.copy_lambda_set_ambient_function_to_subs(
|
||||
lambda_set_var_in_derived,
|
||||
self.home,
|
||||
self.subs,
|
||||
target_rank,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue