# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #125438] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=125438 >
# Should a methodlike Signature ACCEPT extra named parameters? # First, this is at least an LTA error but arguably should be True bri@atlas:~/NetSight/pm6$ perl6 -e 'say so (1,2) ~~ :($a: $b)' Lexical with name 'self' does not exist in this frame in block <unit> at -e:1 # So just to establish this workaround works first... bri@atlas:~/NetSight/pm6$ perl6 -e 'say so (1,2) ~~ :(\self: $b)' True # ...and now we see that a methodlike signature rejects extra nameds: bri@atlas:~/NetSight/pm6$ perl6 -e 'say so (1,2,:a) ~~ :(\self: $b)' False