> On 05 Jun 2016, at 09:52, Wenzel Peppmeyer (via RT) > <[email protected]> wrote: > > # New Ticket Created by Wenzel Peppmeyer > # Please include the string: [perl #128321] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=128321 > > > > dd 10.Capture, 0.5.Capture; > # OUTPUT«\()\(:denominator(2), :numerator(1))» > # expected OUTPUT«\(10)\(:denominator(2), :numerator(1))» > > # this leads to odd behaviour for > > sub returns-different-things () { ((10,"ten"), 10).pick }; > given returns-different-things() { > when :(Int, Str) { say 'It returned a list.' }; > when :(Int) { say 'returned a single Int' }; > default { say 'This should never happen' } > } > > # OUTPUT«This should never happen»
I tried making Mu.Capture take self as a positional, but that causes all sorts of spectest breakage. *AND* it didn’t make the example work. I’m not sure what the best cause of action is. Liz
