# New Ticket Created by Pepe Schwarz
# Please include the string: [perl #124150]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=124150 >
19:57 <psch> j: say ("a" ~~ /<alpha> & <ident> & <alnum>/).caps
19:57 <camelia> rakudo-jvm 5778e8: OUTPUT«ident => 「a」 alnum => 「a」 alpha =>
「a」»
19:57 <psch> m: say ("a" ~~ /<alpha> & <ident> & <alnum>/).caps
19:57 <camelia> rakudo-moar 5778e8: OUTPUT«alpha => 「a」 ident => 「a」 alnum =>
「a」»
I'm not sure what the correct result would be. S05 mentions that there should
be a warning with overlapping bindings. Additionally, sorting of captures is
supposed to be by the sub-Matches .from, but it's not clarified what happens to
elements with the value for .from. In any case, the current behavior makes at
least a few tests S05-capture/caps.t underspecific, e.g.
not ok 36 - .caps & - multiple terms# TODO & caps on jvm
use of uninitialized value of type Any in string context in sub proclaim at
lib/Test.pm:466
# Failed test '.caps & - multiple terms'
# at lib/Test.pm line
# expected: 'alpha:a|ident:a'
# got: 'ident:a|alpha:a'