You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo 'unit class Foo; constant $RT_RE = rx/« [RT]?"#"? <( <[0..9]>**{5..6} »/; method x ($e where $RT_RE) {say "in"}' > Foo.pm6
$ perl6 -I. -MFoo -e 'Foo.new.x: "R"'
getlex: outer index out of range
in regex at /tmp/tmp.pTHyHW456I/.precomp/0F8E2678B84A59BD14F72E830416039936204F36.1506252653.69083/20/201A6B3053CC1422D2C3670B62616221D2290929 line 1
in method x at /tmp/tmp.pTHyHW456I/Foo.pm6 (Foo) line 1
in block <unit> at -e line 1
$ perl6 -v
This is Rakudo version 2017.09-84-gb02da4d built on MoarVM version 2017.09.1-32-g9749b0f
implementing Perl 6.c.
On 2017-09-29 17:01:40, cpan@zoffix.com wrote:
$ echo 'unit class Foo; constant $RT_RE = rx/« [RT]?"#"? <(
<[0..9]>**{5..6} »/; method x ($e where $RT_RE) {say "in"}' > Foo.pm6
$ perl6 -I. -MFoo -e 'Foo.new.x: "R"'
getlex: outer index out of range
in regex at
/tmp/tmp.pTHyHW456I/.precomp/0F8E2678B84A59BD14F72E830416039936204F36.1506252653.69083/20/201A6B3053CC1422D2C3670B62616221D2290929
line 1
in method x at /tmp/tmp.pTHyHW456I/Foo.pm6 (Foo) line 1
in block <unit> at -e line 1
$ perl6 -v
This is Rakudo version 2017.09-84-gb02da4d built on MoarVM version
2017.09.1-32-g9749b0f
implementing Perl 6.c.
Just as a note: This looks very much like the problem from #6378.
The current error message is a bit different:
$ echo 'unit class Bar; constant $RT_RE = rx/« [RT]?"#"? <( <[0..9]>**{5..6} »/; method x ($e where $RT_RE) { say "in" }' >Bar.rakumod
$ ./rakudo-m -I. -M Bar -e 'Bar.new.x: "RT123456"'
No lexical found with name '$_'
in regex at /path/to/rakudo.moar/.precomp/B47CBE5A6DD5C5C42406377948D2926E85BB7EC8/70/702810E168422A79837BF2F8D5609DC68FD3C419 line 1
in method x at /path/to/rakudo.moar/Bar.rakumod (Bar) line 1
in block <unit> at -e line 1
Migrated from rt.perl.org#132186 (status was 'open')
Searchable as RT132186$
The text was updated successfully, but these errors were encountered: