Skip to content

Commit de7cd46

Browse files
committed
try to improve multi method composition, JimmyZ++
this is just by cargo-culting from other places that look similar; so far, all my attempts to actually call multi methods provided from roles have failed
1 parent 37e13ba commit de7cd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/how/NQPParametricRoleHOW.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ knowhow NQPParametricRoleHOW {
148148
$irole.HOW.add_method($irole, $name, $meth);
149149
}
150150
for @!multi_methods_to_incorporate {
151-
$irole.HOW.add_multi_method($irole, $_<name>, $_<code>);
151+
$irole.HOW.add_multi_method($irole, $_<name>, $_<code>.clone());
152152
}
153153

154154
# Copy roles, instantiating them as we go.

0 commit comments

Comments
 (0)