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


$ perl6 -e 'my int $i = 3; say $i.^isa(int)'
0

The value read directly out of an int-typed variable (with the type
constraint operating correctly) is apparently not an int.  That's a
silly result.  The value arrives at the type check in boxed form, of
course, but it's still the same value that the int type is happy to
represent in unboxed form.

-zefram

Reply via email to