mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
replace borrowed boolean with ownership enum
This commit is contained in:
parent
6bdab37541
commit
6c95bc1fb9
9 changed files with 48 additions and 29 deletions
|
@ -1012,11 +1012,11 @@ impl<
|
|||
param_storage.reserve(params.len());
|
||||
for Param {
|
||||
symbol,
|
||||
borrow,
|
||||
ownership,
|
||||
layout,
|
||||
} in params
|
||||
{
|
||||
if *borrow {
|
||||
if *ownership == Ownership::Borrowed {
|
||||
// These probably need to be passed by pointer/reference?
|
||||
// Otherwise, we probably need to copy back to the param at the end of the joinpoint.
|
||||
todo!("joinpoints with borrowed parameters");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue