Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masak/530197 to your computer and use it in GitHub Desktop.
Save masak/530197 to your computer and use it in GitHub Desktop.
$ 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