Skip to content
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

Closed
p6rt opened this issue Aug 19, 2009 · 5 comments
Closed

Match.orig dies with "No such attribute '$!target'" #1239

p6rt opened this issue Aug 19, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 19, 2009

Migrated from rt.perl.org#68680 (status was 'resolved')

Searchable as RT68680$

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @moritz

00​:02 <@​moritz_> rakudo​: 'foo' ~~ /o/; say $/.orig
00​:02 < p6eval> rakudo 0d4fe0​: OUTPUT«No such attribute '$!target'␤in
Main (/tmp/YPZPphWw6E​:2)␤»

Obviously that's less than awesome.

Moritz

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S05-capture/named.t

commit 366cffad4aea063bae83f8419a7dc2f115e81fa3
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Wed Aug 19 22​:14​:35 2009 +0000

  Test for RT #​68680, Match.orig
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;28037 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --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>

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 28, 2009

From @pmichaud

Now fixed in ab99068d. Resolving ticket, thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Aug 28, 2009

@pmichaud - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 28, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant