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



Hello,

I failed converting an object derived from Int using bless:

code:

class Foo is Int {};  sub somefoo returns Foo { Foo.bless: 13 }; say 
somefoo.WHAT;

    Error:
    rakudo d61049: OUTPUT«Type check failed for return value␤  in sub
    somefoo at /tmp/42g2EnvfAS:1␤ in block <anon> at /tmp/42g2EnvfAS:1␤␤»


$ perl6 --version
This is perl6 version 2012.04.1-9-g110f35c built on parrot 4.3.0 revision 
RELEASE_4_3_0-12-gf983396

Reply via email to