This works now (again):
$ perl6-m -e '"x" ~~ /(y)? (z)*/; say $0.defined; say $1.defined;'
False
True
I added a test to S05-match/capturing-contexts.t with the following commit:
https://github.com/perl6/roast/commit/ae245a65f6
On Sat Oct 01 02:02:50 2011, bbkr wrote:
> 2011.09 build
>
> bbkr:rakudo-2011.09 bbkr$ ./perl6 -e '"x" ~~ /(y)? (z)*/; say
> $0.defined, $1.defined;'
> Bool::FalseBool::False
Changed again, but still wrong per Larry's comment:
./perl6 -e '"x" ~~ /(y)? (z)*/; say 0.defined, $1.defined;'
TrueTrue
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #83508]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=83508 >
specs: a56ffc3 | larry++ | S (2 files):
specs: make ?/* semantics consistently Nil/()