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


I expected these two forms to behave the same:

    <Zoffix_> m: my $ where .so && .name = sub foo {}
    <camelia> rakudo-moar a2602b: OUTPUT: «Sub object coerced to string (please 
use .gist or .perl to do that)␤  in block <unit> at <tmp> line 1␤»
    <Zoffix_> m: my $ where { .so && .name } = sub foo {}
    <camelia> rakudo-moar a2602b: ( no output )

However, it looks like in the thunk form, the return value of the thunk is then 
smart matched against the original value.

Reply via email to