# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #129270]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129270 >


Works:
zoffix@VirtualBox:~$ perl6 -e 'class Foo { ... }; class Foo { }'

Redeclaration error:
zoffix@VirtualBox:~$ perl6 -e 'class Foo { … }; class Foo { }'                  
                                                                                
                                                                                
               
===SORRY!=== Error while compiling -e
Redeclaration of symbol 'Foo'
at -e:1
------> class Foo { … }; class Foo⏏ { }
    expecting any of:
        generic role

Even though it can be used as a stub:
zoffix@VirtualBox:~$ perl6 -e '…'                                               
                                                                                
                                                                                
               
Stub code executed
  in any  at 
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm
 line 1
  in block <unit> at -e line 1

zoffix@VirtualBox:~$ perl6 -v
This is Rakudo version 2016.08.1-163-g04af57c built on MoarVM version 
2016.08-43-g3d04391
implementing Perl 6.c.

Reply via email to