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


This be Rakudo db84bc on Parrot r43174.

$ perl6 -e 'my $x; foo; sub foo { say $x }'
Use of uninitialized value

Fine. But now:

$ perl6 -e 'foo; my $x; sub foo { say $x }'
Null PMC access in type()
[...]

In both programs, $x is clearly in scope when accessed, so this is not
one of the open "variable access before declaration" tickets. (Even
though it might have similar causes.) So I doubt that the latter of
the programs should be illegal. Even if it were, it shan't produce a
Null PMC access.

Reply via email to