# New Ticket Created by
# Please include the string: [perl #125181]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125181 >
I've typoed two 'returns' modifiers in a row, and get an unhandled
exception for my troubles. The
--cut here--
perl6 --doc bug.pm6
Code object coerced to string (please use .gist or .perl to do that) at
src/Perl6/World.nqp line 2438 in any ex-handle at
src/Perl6/World.nqp:3481
Unhandled exception: No exception handler located for warn
at <unknown>:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:print_exception:4294967295)
from src/gen/m-CORE.setting:14852
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:<anon>:40)
from gen/moar/stage2/NQPHLL.nqp:1420
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_eval:374)
from src/Perl6/Compiler.nqp:59
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm:command_eval:93)
from gen/moar/stage2/NQPHLL.nqp:1360
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_line:116)
from src/gen/m-main.nqp:39
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:MAIN:18)
from src/gen/m-main.nqp:35
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<mainline>:197)
from <unknown>:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<main>:8)
from <unknown>:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<entry>:9)
--cut here--
--cut here--
use v6;
use NativeCall;
class ReadLine {
my constant LIB = 'libreadline.so.6';
method get-history-tokenize( Str $str ) returns Pointer[Str] # Here's
the first 'returns'
returns Int { # and
here's the second.
history_tokenize( $str ) }
}
--cut here--