Ticket #899 (new bug)
heredocs in a macro argument broken.
Reported by: | coke | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | trunk |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
.macro qq(code) .code .endm .sub main :main say 'hi' say <<'FOO' hi FOO .qq({ say "hi" }) =for FAIL .qq({ say <<"FOO" hi FOO }) =cut .end
If you remove the pod comments, you get:
parrot foo.pir error:imcc:The opcode 'say' (say<0>) was not found. Check the type and number of the arguments in macro '.qq' line 3 included from 'foo.pir' line 1
I'd expect non-POD'd version to print out 'hi' 4 times (modulo whitespace)
Change History
Note: See
TracTickets for help on using
tickets.