Skip to content

Instantly share code, notes, and snippets.

@masak
Created November 16, 2010 00:53
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/701261 to your computer and use it in GitHub Desktop.
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
$ 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