package cache flag, so we need to reset that flag when adding a role.
This fixes the bug tokuhirom found, which is tested in
t/030_roles/031_roles_applied_in_create.t
(blessed($role) && $role->isa('Moose::Meta::Role'))
|| confess "Roles must be instances of Moose::Meta::Role";
push @{$self->get_roles} => $role;
+ $self->reset_package_cache_flag;
}
sub calculate_all_roles {