For example, if I have the following files:
Foo.pm
module Foo-0.0.1; use v6;
# note the lack of 'is export'... sub bar { say "Foo::bar"; }
foo.p6
use v6; use Foo;
bar();
I'd assume this should be an error, since bar isn't exported, but it's not, running the code prints out "Foo::bar". This is even the case if I define another 'sub bar' in foo.p6, the version from Foo.pm is still called.
Am I missunderstanding this, or is it a bug?
-garrett