Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
error on accidental `use use Module::With::Colons` #5502
If you accidentally put "use" twice with a module that has double colons in the name, the error is LTA as says nothing of the actual reason for failure and also lacks any references such as file names or lines.
<Zoffix> m: use use Foo::Bar
It happens regardless of whether the actual module exists or not:
2 directories, 1 file
$ cat Foo/Bar/Ber.pm6
$ perl6 -I. -e 'use use Foo::Bar::Ber'
Running this with RAKUDO_MODULE_DEBUG=1 shows that it doesn’t even try to load it as a pragma first:
$ RAKUDO_MODULE_DEBUG=1 6 'use use Foo::Bar'
$ RAKUDO_MODULE_DEBUG=1 6 'use Foo::Bar'