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


<masak> r: macro foo { quasi { my &bar = { say "OH HAI" }; bar } }; foo
<p6eval> rakudo 64208d: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined
routine '&bar' called (line 1)␤»
<masak> r: macro foo { quasi { my &bar = { say "OH HAI" }; &bar() } }; foo
<p6eval> rakudo 64208d: OUTPUT«Cannot assign into a PMCNULL container [...]
* masak submits rakudobug
<masak> none of this is surprising, of course, since we already know
assignments to locally declared variables don't work properly in quasi
blocks.
<masak> r: macro foo { quasi { my $bar = "OH HAI"; say $bar } }; foo
<p6eval> rakudo 64208d: OUTPUT«Cannot assign into a PMCNULL container [...]
<masak> r: macro foo { quasi { my $bar; say $bar } }; foo
<p6eval> rakudo 64208d: OUTPUT«Mu()␤»

Reply via email to