-
-
Save masak/406d687c3e4e0684c013 to your computer and use it in GitHub Desktop.
Should this be allowed (but poison "B" in the importing scope)?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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