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


<jnthn> rakudo: Foo::bar(); module Foo { our sub bar() { say "ok" } }
<p6eval> rakudo : OUTPUT«Could not find sub &say␤  in 'Foo::bar' [...]
<masak> jnthn: why does that even run? how do we get away with using
the Foo:: namespace before declaring the module?
<jnthn> masak: Good question...
<jnthn> masak: I know the answer for NQP. For Rakudo...oddness.
<masak> std: Foo::bar(); module Foo {}
<p6eval> std a194beb: OUTPUT«===SORRY!===␤Undeclared
name:␤'Foo::bar' used at line 1␤Check failed␤FAILED 00:01 118m␤»
<masak> rakudo: Foo::bar(); module Foo { our sub bar { "OH LOL".say }
}; say "alive"
<p6eval> rakudo : OUTPUT«OH LOL␤alive␤»
* masak submits rakudobug

Reply via email to