A couple hacks to get deriving of records working.. but it's working?

This commit is contained in:
Ayaz Hafiz 2022-07-08 11:24:06 -04:00
parent 801803d813
commit 63adb901b4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
8 changed files with 156 additions and 104 deletions

View file

@ -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,
)
}
}