# New Ticket Created by Zoffix Znet # Please include the string: [perl #127143] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127143 >
I think this is related to https://rt.perl.org/Ticket/Display.html?id=127134 The code below shows three scenarious: 1) Subcall with two named args of same name without a comma between them, with the latter overriding the former 2) Subcall with a slipped hash and a named parameter of same name as the one in the hash, NOT separated by comma: the named parameter does NOT override the value 3) Subcall with a slipped hash and a named parameter of same name as the one in the hash, SEPARATED by comma: the named parameter DOES override the value <Zoffix> m: sub SUB(:$foo) {say "[$foo]" }; my %args = :foo<foo>; SUB :foo<foo> :foo<newfoo>; SUB |%args :foo<newfoo>; SUB |%args, :foo<newfoo>; <camelia> rakudo-moar 7d4cdb: OUTPUT«[newfoo][foo][newfoo]» The Expected Thing™ would be that slipped hash behaves same as regular named args or at least an error/warning is shown.