# New Ticket Created by  Patrick R. Michaud 
# Please include the string:  [perl #68142]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68142 >


S09:1043 says that junctions passed as components of a slurpy
array or hash do not cause autothreading, but Rakudo currently
autothreads junctions over slurpies on some multisubs:

    $ cat x
    multi sub foo(*...@a) { say 'foo'; }
    multi sub bar(Any *...@a) { say 'bar'; }
    
    foo(1|2|3);
    bar(1|2|3);

    $ ./perl6 x
    foo
    bar
    bar
    bar
    $ 

As of 91408af, the call to foo() is correct.  

The call to bar() should either execute once, or fail outright
(because a Junction argument isn't of type Any).   

Tests for this are being added to S06-signature/slurpy-params.t .

Pm

Reply via email to