# New Ticket Created by Zoffix Znet
# Please include the string: [perl #130425]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130425 >
$ ./perl6 -e $'class C { method foo { say 10 } }; foo C.new:\n'
===SORRY!=== Error while compiling -e
Undeclared routine:
foo used at line 1
$ ./perl6 -v
This is Rakudo version 2016.12-122-gd35efb6 built on MoarVM version
2016.12-23-g3c5253c
implementing Perl 6.c.
This also appears to happen if written in a file or typed in the REPL