# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #75852]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75852 >


$ cat A/B.pm
class A::B {}

$ perl6 -e 'use A::B; class A {}'
===SORRY!===
Illegal redeclaration of symbol 'A'

$ perl6 -e 'class A::B {}; class A {}; say "alive"'
alive

In the failing program, if 'class A::B {}' is replaced by 'role A::B
{}', things still fail. If the '{}' is replaced by a semicolong,
things still fail. However, if 'class A' is replaced by 'role A',
things work.

Reply via email to