# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62898] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62898 >
In Rakudo r36143, the following works: $ perl6 -e 'role A::B {}; class A {}' # works But put the role declaration in its own module file A/B.pm: $ cat A/B.pm use v6; role A::B { } $ perl6 -e 'use A::B; class A {}' # fails Re-declaration of type A at line 1, near "" [...] The problem is somehow tied to 'use', becuase this works: $ perl6 -e 'role A::B {}; class A {}' # works All of the above also holds when A::B is declared as being a class, but things work when A is declared as being a role.