# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #79464] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=79464 >
<jnthn> rakudo: Foo::bar(); module Foo { our $x = 42; our sub bar() { $x.say } } <p6eval> rakudo : OUTPUT«Null PMC access in find_method('say') in 'Foo::bar' [...] <masak> ISTR that bug is in RT somewhere. * masak looks <masak> hm. seems not. * masak submits rakudobug <masak> rakudo: Foo::bar(); module Foo { my $x; our sub bar { $x.say } } <p6eval> rakudo : OUTPUT«Null PMC access in find_method('say') in 'Foo::bar' [...] <masak> rakudo: module Foo { my $x; sub bar { $x.say }; bar } <p6eval> rakudo : OUTPUT«Any()» The Foo::bar() call shouldn't be made before the declaration of the module -- submitting that as a separate ticket. But even putting them after the module, the result is the same, since the call is made at runtime anyway.