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

Invocant type empty in error message when calling non-existant method on hash #2122

Closed
p6rt opened this issue Aug 31, 2010 · 7 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2010

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

Searchable as RT77582$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @moritz

$ perl6 -e 'my %h; %h<a> = 3; %h.nonexist'
Method 'nonexist' not found for invocant of class ''
  in main program body at line 1

Should say "for invocant of class 'Hash'".

Moritz

@p6rt
Copy link
Author

p6rt commented Sep 1, 2010

From sohtil@gmail.com

This looks like a duplicate of ticket #​77202.

@p6rt
Copy link
Author

p6rt commented Sep 1, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 1, 2010

From @moritz

On Wed Sep 01 08​:28​:56 2010, lithos wrote​:

This looks like a duplicate of ticket #​77202.

Not quite​: #​77202 is about type objects, but %h isn't a type object,
it's a defined variable.

@p6rt
Copy link
Author

p6rt commented Jan 30, 2012

From @coke

On Tue Aug 31 13​:12​:23 2010, moritz wrote​:

$ perl6 -e 'my %h; %h<a> = 3; %h.nonexist'
Method 'nonexist' not found for invocant of class ''
in main program body at line 1

Should say "for invocant of class 'Hash'".

Moritz

09​:06 < [Coke]> rakudo​: my %h; %h<a> = 3; %h.nonexist
09​:06 <+p6eval> rakudo 068329​: OUTPUT«Method 'nonexist' not found for
invocant
  of class 'Hash'␤ in block <anon> at
/tmp/Eaa4YvK50_​:1␤ in
  <anon> at /tmp/Eaa4YvK50_​:1␤»

\o/ . o O (Closable with tests)
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 3, 2013

From @moritz

now tested in S32-exceptions/misc.t

@p6rt
Copy link
Author

p6rt commented Jan 3, 2013

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

@p6rt p6rt closed this as completed Jan 3, 2013
@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