Role with stubs in a file without a package declation #2247
A role with a stub declared in a file without
Steps to Reproduce
Let's create the following file and name it FooRole.pm6:
and a script:
Running the script would generate the error line mentioned in the beginning.
If this behavior is intended then better error text and a note in documentation would be very helpful.
Reproducable on 2018.06 too.