Skip to content

Commit 84d8cc0

Browse files
committed
Fix to role collision handling from NQP JVM.
The collisions list is just names, not code objects.
1 parent 71fab2d commit 84d8cc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/how/RoleToClassApplier.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ knowhow RoleToClassApplier {
3333

3434
# Collisions?
3535
my @collisions := $to_compose_meta.collisions($to_compose);
36-
for @collisions {
37-
my $name := nqp::can($_, 'name') ?? $_.name !! nqp::getcodename($_);
36+
for @collisions -> $name {
3837
unless has_method($target, $name, 1) {
3938
nqp::die("Method '$name' collides and a resolution must be provided by the class '" ~
4039
$target.HOW.name($target) ~ "'");

0 commit comments

Comments
 (0)