[perl #129364] named arguments in sub signature not filled with values in surrounding where clause

2016-09-28 Thread jn...@jnthn.net via RT
On Mon Sep 26 15:42:15 2016, gfldex wrote: > sub f( | ( :$a) where { dd $a } ) {}; f 42 > > # OUTPUT«Mu␤Constraint type check failed for parameter ''␤in sub f > at line 1␤ in block at line 1␤␤» > > # it should either work or complain that $a is not declared in this scope Making it work

[perl #129364] named arguments in sub signature not filled with values in surrounding where clause

2016-09-26 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #129364] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129364 > sub f( | ( :$a) where { dd $a } ) {}; f 42 # OUTPUT«Mu␤Constraint type check failed