# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62622] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62622 >
<moritz_> masak: can you submit the 'my Int $x = +"2"' bug please? * masak submits <masak> rakudo: my Int $x = +'2' <p6eval> rakudo 35875: OUTPUT«Type mismatch in assignment. [...] <jnthn> rakudo: say WHAT +"2"; <p6eval> rakudo 35875: OUTPUT«Num» <jnthn> meh. <jnthn> That's why. <moritz_> it should be a bit smarter <masak> moritz_: + numifies. <masak> it doesn't intify. <jnthn> masak: I know, but it's not the most helpful behavior... <masak> true. <jnthn> Well, the most dwim anyway. <moritz_> masak: right. But since Int conforms to the Num type, it's more DWIM if it does int directly, where appropriate <moritz_> rakudo: my Int $x = int "2"; <p6eval> rakudo 35876: RESULT«2»
