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


[12:48:23] <lizmat>      r: my Int @a; @a.push: "a"; say @a   # rakudobug
[12:48:24] <+camelia>    rakudo c81003: OUTPUT«a␤»
[12:49:03] <lizmat>      r: my Int @a; @a[@a.elems] ="a"; say @a
[12:49:04] <+camelia>    rakudo c81003: OUTPUT«Type check failed in assignment 
to '$v'; expected 'Int' but got 'Str'␤  in block  at /tmp/6VsTyW_b_X:1␤␤»
[12:49:19] <lizmat>      apparently .push is not doing a typecheck
[12:49:40] <lizmat>      r: my Int @a; @a.unshift: "a"; say @a   # rakudobug
[12:49:41] <+camelia>    rakudo c81003: OUTPUT«a␤»
[12:49:50] <lizmat>      and nor is unshift
[12:50:44] lizmat        submits rakudonug

Reply via email to