Skip to content
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

Cannot augment class Hash #1876

Closed
p6rt opened this issue Jun 25, 2010 · 5 comments
Closed

Cannot augment class Hash #1876

p6rt opened this issue Jun 25, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jun 25, 2010

Migrated from rt.perl.org#76104 (status was 'resolved')

Searchable as RT76104$

@p6rt
Copy link
Author

p6rt commented Jun 25, 2010

From @supernovus

<supernovus> rakudo​: use MONKEY_TYPING; augment class Hash { method hi { say
'hi' } }; my %h; %h.hi;
<p6eval> rakudo 4e6cce​: OUTPUT«Method 'hi' not found for invocant of class
''␤ in main program body at line 11​:/tmp/AayQsvcfGd␤»

This seems to be similar to the bugs noted in issue # 75114.

This time it's not even reporting back a classname in the error message.

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @coke

On Fri Jun 25 14​:35​:36 2010, supernovus wrote​:

<supernovus> rakudo​: use MONKEY_TYPING; augment class Hash { method hi
{ say
'hi' } }; my %h; %h.hi;
<p6eval> rakudo 4e6cce​: OUTPUT«Method 'hi' not found for invocant of
class
''␤ in main program body at line 11​:/tmp/AayQsvcfGd␤»

This seems to be similar to the bugs noted in issue # 75114.

This time it's not even reporting back a classname in the error
message.

In rakudo-latest​:

$ ./perl6 -e "use MONKEY_TYPING; augment class Hash { method hi { say
'hi' } }; my %h; %h.hi;"
hi

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

now tested in S12-class/augment-supersede.t.

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 1, 2011
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant