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


Seems regardless of what Junction I use, smartmatch against Bool type object 
always returns false, despite
individual items smartmatching as true:

    <ZoffixW> m: say True ~~ Bool
    <camelia> rakudo-moar db1836: OUTPUT«True␤»
    <ZoffixW> m: say False ~~ Bool
    <camelia> rakudo-moar db1836: OUTPUT«True␤»
    <ZoffixW> m: say [False, True].all ~~ Bool
    <camelia> rakudo-moar db1836: OUTPUT«False␤»
    <ZoffixW> m: say [False, True].any ~~ Bool
    <camelia> rakudo-moar db1836: OUTPUT«False␤»
    <ZoffixW> m: say [False, True].none ~~ Bool
    <camelia> rakudo-moar db1836: OUTPUT«False␤»

And despite them smartmatching correctly against some other type object, like 
an Int:

    <ZoffixW> m: say [False, True].none ~~ Int
    <camelia> rakudo-moar db1836: OUTPUT«False␤»
    <ZoffixW> m: say [42].all ~~ Int
    <camelia> rakudo-moar db1836: OUTPUT«True␤»
    <ZoffixW> m: say Bool ~~ Int
    <camelia> rakudo-moar db1836: OUTPUT«True␤»
    <ZoffixW> m: say [False, True].all ~~ Int
    <camelia> rakudo-moar db1836: OUTPUT«True␤»

Reply via email to