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
named @-siggiled capture explodes when it aliases a positional capture #3318
Comments
From @FROGGSThis should return a list with one element "a": # This clearly does the right thing: # The explosion is not about the quantifier: # It seems to be about positional captures: The last example does not explode, but unfortunately returns Nil when it should return our nice little "a". |
From @usev6All these examples work now: $ perl6 -e 'say "a" ~~ /@<from>=(.)*/' $ perl6 -e 'say "a" ~~ /$<from>=(.)*/' $ perl6 -e 'say "a" ~~ /@<from>=(.)+/' $ perl6 -e 'say "a" ~~ /@<from>=[.]+/' I added tests for the previously failing evaluations to S05-capture/array-alias.t (commit Raku/roast@cd2f27032f). I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6All these examples work now: $ perl6 -e 'say "a" ~~ /@<from>=(.)*/' $ perl6 -e 'say "a" ~~ /$<from>=(.)*/' $ perl6 -e 'say "a" ~~ /@<from>=(.)+/' $ perl6 -e 'say "a" ~~ /@<from>=[.]+/' I added tests for the previously failing evaluations to S05-capture/array-alias.t (commit Raku/roast@cd2f27032f). I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#121061 (status was 'resolved')
Searchable as RT121061$
The text was updated successfully, but these errors were encountered: