# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #77710]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77710 >
<masak> rakudo: multi f([]) {}; multi f(@a) {}; f(my @b = 1, 2, 3)
<p6eval> rakudo 77a72a: OUTPUT«===SORRY!===Redeclaration of symbol @b
at line 22, near " = 1, 2, 3"»
<jnthn> That's a weird mmd fail...
* masak submits rakudobug
<jnthn> rakudo: multi f(@a) {}; my @b = 1, 2, 3; f @b
[15:40]
<p6eval> rakudo 77a72a: ( no output )
<jnthn> ...
<jnthn> wtf.
<jnthn> Seems adding the extra cand with the sub-sig busts it.
* moritz_ thinks he's seen a similar bug before
<moritz_> cognominal was involved back then, I think
<masak> rakudo: multi f(Int $a) {}; multi f($b) {}; f(my $x = 42)
<p6eval> rakudo 77a72a: ( no output )
<masak> rakudo: multi f(Int $a) {}; multi f($b) {}; f(my @x = 42)
<p6eval> rakudo 77a72a: OUTPUT«===SORRY!===Redeclaration of symbol @x
at line 22, near " = 42)"»
<jnthn> rakudo: foo(my @x = 42)
<p6eval> rakudo 77a72a: OUTPUT«===SORRY!===Redeclaration of symbol @x
at line 22, near " = 42)"»
<jnthn> declaration in args = kaboom, it seems
<masak> jnthn: I"ll add that to the ticket.
<masak> rakudo: foo(my @x)
<p6eval> rakudo 77a72a: OUTPUT«Could not find sub &foo in main
program body at line 22:/tmp/CwOH4cdJb6»
<masak> array declaration and assignment
<jnthn> rakudo: foo(my %x = 42)
<p6eval> rakudo 77a72a: OUTPUT«===SORRY!===Redeclaration of symbol %x
at line 22, near " = 42)"»