Skip Menu |
Report information
Id: 126901
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
Date: Sun, 13 Dec 2015 20:35:27 +0000
From: Zefram <zefram [...] fysh.org>
Subject: [BUG] native value type checks give bad results
Download (untitled) / with headers
text/plain 357b
$ 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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org