[perl #120995] Same argument present multiple times is okay with one name, not with two

2017-09-10 Thread Sam S. via RT
On Mon, 13 Jan 2014 18:28:14 -0800, m...@kli.org wrote: > > sub f(:a(:b($x))) { say $x } > sub f(Any :a(:b($x))) { ... } > > f(:a("A"), :a("B")) > B > > f(:a("A"), :b("B")) > Unexpected named parameter 'a' passed > > If nothing else, the error message is LTA. But basically we're allowed > to pass

[perl #120995] Same argument present multiple times is okay with one name, not with two

2014-01-14 Thread Mark E. Shoulson
# New Ticket Created by "Mark E. Shoulson" # Please include the string: [perl #120995] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=120995 > > sub f(:a(:b($x))) { say $x } sub f(Any :a(:b($x))) { ... } > f(:a("A"), :a("B"))