I'm trying to create some classes in the repl and when I create a second class with the same attributes as the first class I'm told it's already defined.
Is this a simply a problem with the repl not handling namespaces correctly? It works as expected in a file.
Perl6 version: This is Rakudo version 2018.10 built on MoarVM version 2018.10 implementing Perl 6.c.
> class Thing {
* has $.stuff;
* }
(Thing)
> class OtherThing {
* has $.stuff;
* }
Package 'OtherThing' already has an attribute named '$!stuff'
in any scope_declarator at /home/path/.rakudobrew/moar-2018.10 /install/share/nqp/lib/Perl6/Grammar.moarvm line 1
in any term:sym<scope_declarator> at /home/path/.rakudobrew/moar-2018.10/install/share/nqp/lib/Perl6/Grammar.moarvm line 1
in any term at /home/path/.rakudobrew/moar-2018.10/install/share/nqp/lib/Perl6/Grammar.moarvm line 1