# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #128710] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128710 >
sub niler{Nil}; my Int:D $i where .defined = niler(); say $i; say $i.WHAT; # OUTPUT«(<anon>)(<anon>)» # expected: well, I don't know since I explicitely asked for a defined # value _twice_ but Nil is supposed to revert a container to it's default. # That default is undefined, what can't work with $_.defined and should # work (by design, not my opinion) with :D. # Either way, I would like to get a type object when asking for WHAT. # may be related to RT#127958