You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't find this anywhere. I know there is some modifications in this
area being planned.
If a class, C, in a module A "does" a role, R", in module B, and a unit
elsewhere does a use of A and a use of B, then from there C.does(R)
returns False.
version: "This is Rakudo version 2016.11 built on MoarVM version 2016.11
implementing Perl 6.c."
Occurs on both OSX (running v2016.10) and Windows.
Test files:
t/DoesTest1.t
# This test file fails
use Test;
use DoesTest2;
# The following two lines and the header comment are the only differences
# between DoesTest1.t and DoesTest2.t
use DoesTest1;
say "This version fails.\n\n";
plan 1;
ok DoesTestClass.does(DoesTestRole), "This should work.";
t/DoesTest2.t
# This test file succeeds
use Test;
use DoesTest2;
# The following two lines and the header comment are the only differences
# between DoesTest1.t and DoesTest2.t
#use DoesTest1;
say "This version succeeds.\n\n";
plan 1;
ok DoesTestClass.does(DoesTestRole), "This should work.";
lib/DoesTest1.pm6
# DoesTest1.pm6 supplies a role to DoesTest2.pm6
role DoesTestRole is export {}
lib/DoesTest2.pm6
# DoesTest2.pm6 creates a class that does role supplied by DoesTest1.pm6
use DoesTest1;
class DoesTestClass is export does DoesTestRole {}
Migrated from rt.perl.org#130405 (status was 'new')
Searchable as RT130405$
The text was updated successfully, but these errors were encountered: