New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match.orig dies with "No such attribute '$!target'" #1239
Comments
From @moritz00:02 <@moritz_> rakudo: 'foo' ~~ /o/; say $/.orig Obviously that's less than awesome. Moritz |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S05-capture/named.t commit 366cffad4aea063bae83f8419a7dc2f115e81fa3 Test for RT #68680, Match.orig Inline Patchdiff --git a/t/spec/S05-capture/named.t b/t/spec/S05-capture/named.t
index 7e3199a..5f4b35c 100644
--- a/t/spec/S05-capture/named.t
+++ b/t/spec/S05-capture/named.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 6;
+plan 7;
=begin pod
@@ -25,6 +25,8 @@ if !eval('("a" ~~ /a/)') {
"whaleshark" ~~ m/<fishy>/;
is($/<fishy>[0], "whale", "named rule ordinal capture");
is($<fishy>[0], "whale", "named rule ordinal capture with abbreviated variable");
+ #?rakudo skip 'RT 68680'
+ is $/.orig, 'whaleshark', '$/.orig works';
};
#L<S05/Named scalar aliasing to subpatterns> |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in ab99068d. Resolving ticket, thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#68680 (status was 'resolved')
Searchable as RT68680$
The text was updated successfully, but these errors were encountered: