Skip to content

Instantly share code, notes, and snippets.

@masak
Created January 11, 2015 10:23
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/406d687c3e4e0684c013 to your computer and use it in GitHub Desktop.
Save masak/406d687c3e4e0684c013 to your computer and use it in GitHub Desktop.
Should this be allowed (but poison "B" in the importing scope)?
$ cat X.pm
enum X is export <A B>;
$ cat Y.pm
enum Y is export <B W>;
$ perl6 -I. -e 'use X; use Y'
===SORRY!===
Merging GLOBAL symbols failed: duplicate definition of symbol B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment