# New Ticket Created by  Steve Schulze 
# Please include the string:  [perl #79242]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=79242 >


use Test; # remove this line, and it works
use MONKEY_TYPING;

augment class Any {
     method foo is export { say "OH HAI" };
}

().foo;  # Works whether or not Test is loaded
foo([]); # Doesn't work if Test is loaded



With Test loaded:
OH HAI
Could not find sub &foo
   in main program body at line 9:test.pl

Without Test loaded:
OH HAI
OH HAI


Tested under Rakudo Star 2010.10; WinXP and Ubuntu Linux 10.10.

Reply via email to