id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
466,"PAST::Val.new( :value( ~$/ ), :returns('Complex')) generates incorrect pir",bsdz,pmichaud,"When trying to assigned capture string to a Complex type the generated PIR does not quote the string token so one ends up with something like: -

{{{
    new $P14, ""Complex""
    assign $P14, 10i
}}}

When you really want: -

{{{
    assign $P14, ""10j""
}}}
This can be fixed by adding the a valflag option in src/PAST/Compiler.pir similar to String's settings.

    valflags['Complex']   = 's~*:e'

However, this might break some future intended usage. 

It would be something useful to control from NQP.
",bug,closed,major,,PCT,trunk,medium,wontfix,,,,,all
