Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ cat A.pm
enum Result <failure success forced-success>; role X {}
$ cat B.pm
class B;
method str_escape($/) {
if 1 {
make :16(4);
}
}
$ perl6 -e 'use A; use B'
Segmentation fault
Put those statements directly on the command line, and it works.
Put those statements in the same module and 'use' that module, and it works.
Remove almost any component of the two files, and it works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment