Assuming there is a Module that contains the sub MAIN
's which is supposed to improve the startup speed. Unfortunately I am unable to use the named-anywhere
feature that way. Is my export broken or what am I supposed to do?
use v6.c;
unit module My::Main;
our %*SUB-MAIN-OPTS is export = ( 'named-anywhere' => True);
multi sub MAIN() is export {
say 1;
}
multi sub MAIN('a', :$pa) is export {
say $pa;
}