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


Running the following with NQP:

my %h;
%h{'foo'} := 'bar';

Gives the following error:

error:imcc:syntax error, unexpected '\n'
        in file 'EVAL_3' line 13

--target=pir gives the following:

.namespace 
.sub "_block10" 
    new $P11, "Undef"
    .lex "%h", $P11
    new $P12, "String"
    assign $P12, "bar"
    find_lex $P13, "%h"
    unless_null $P13, vivify_14
    new $P13, "Hash"
    store_lex "%h", $P13
  vivify_14:
    set $P13["foo"], 
    .return ()
.end

Reply via email to