# New Ticket Created by  "brian d foy" 
# Please include the string:  [perl #131339]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131339 >


I was playing with Pair and found this odd error message that says
the default constructor only takes named arguments. While .new can
take named arguments, it doesn't do anything iwth them. It does
construct a Pair from positional parameters though.

    > my @array = <a b c>
    [a b c]
    > :@array
    array => [a b c]
    > my $pair = Pair.new: @array
    Default constructor for 'Pair' only takes named arguments
      in block <unit> at <unknown file> line 1

    > my $pair = Pair.new: :a('b')
    (Mu) => (Mu)

Reply via email to