my $role = $application->role;
for my $method ($role->get_method_list) {
next if $application->is_method_excluded($method);
+ next if $application->is_method_aliased($method);
my $method_object = $class->get_method($method)
or next;
with 'Role::A';
with 'Role::B';
+#-----------------------------------------------------------------------------
+
+## name Name collision with aliasing
+## failures 0
+## cut
+
+package Role;
+use Moose::Role;
+
+sub foo {}
+
+package Class;
+use Moose;
+with 'Role' => { alias => { foo => 'foo_bar' } };
+
+sub foo {}
+