tckect #42992: Method modifiers affect all classes in the whole inheritance tree
[gitmo/Mouse.git] / lib / Mouse / Meta / Role.pm
index 5dccbdc..709c3f9 100644 (file)
@@ -101,7 +101,7 @@ sub apply {
                 # XXX what's Moose's behavior?
                 #next;
             } else {
-                *$class_function = *$role_function;
+                *{$class_function} = \&{$role_function};
             }
             if ($args{alias} && $args{alias}->{$name}) {
                 my $dstname = $args{alias}->{$name};