# New Ticket Created by Arne Skjærholt # Please include the string: [perl #65022] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65022 >
Given these two classes: class Test1 { class A {} } class Test2 { class A {} } Rakudo fails with the error ``Re-declaration of type A at line 7, near "}\n"''. I think this is related a problem in the interactive interpreter. If you declare a class in a line, and then definen a class with the same name in a subsequent line, you will get a type redefinition error like the script above: $ ./perl6 > class A {} > class A {} Re-declaration of type A at line 2, near "" I'm not familiar with Rakudo's guts, but to me it looks like class information is stored in a more global scope than lexical scope, and apparently without the full path to the type, only the local name.