New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Loading Test.pm prevents augmented methods from being accessible as subs. #2260
Comments
From @thundergnatuse Test; # remove this line, and it works augment class Any { ().foo; # Works whether or not Test is loaded With Test loaded: Without Test loaded: Tested under Rakudo Star 2010.10; WinXP and Ubuntu Linux 10.10. |
From @thundergnatSome further information: if the MONKEY_TYPING augment occurs in a |
From @thundergnatOn Mon Nov 15 17:26:42 2010, thundergnat@comcast.net wrote:
OK, the Test.pm module is a red herring. I get the same behavior if I use YAML; # fail I even put a Bar.pm in my user lib directory that only contained the line: module Bar; and got the same results. Removing the "is export" from the method will trigger the same behavior ############################################# augment class Any { ().foo; # Works ############################################# so it seems like loading a module interferes with the 'is export' |
From @MouqRakudo now consistently and correctly fails in *both* cases: $ perl6 -e'use MONKEY_TYPING; augment class Any { method foo is export { say "OH HAI" }; };().foo;foo([]);' $ perl6 -e'use Test; use MONKEY_TYPING; augment class Any { method foo is export { say "OH HAI" }; };().foo;foo([]);' Even though the output has become consistent, the spec of the behavior the ticket depends on has changed as well. Thus I'm marking this ticket as rejected. On Tue Nov 16 12:57:46 2010, thundergnat wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
@Mouq - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#79242 (status was 'rejected')
Searchable as RT79242$
The text was updated successfully, but these errors were encountered: