Created
November 16, 2010 00:53
-
-
Save masak/701261 to your computer and use it in GitHub Desktop.
doing 'use Test' and then augmenting class Any with an exported method doesn't make that method visible in the GLOBAL namespace in Rakudo
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 t/01-basic.t | |
use Test; # remove this line, and it works | |
use MONKEY_TYPING; | |
augment class Any { | |
method foo is export { say "OH HAI" }; | |
} | |
foo([]) | |
$ perl6 t/01-basic.t | |
Could not find sub &foo | |
in main program body at line 8:t/01-basic.t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment