develooper Front page | perl.perl6.compiler | Postings from January 2012

[perl #77582] Invocant type empty in error message when calling non-existant method on hash

From:
Will Coleda via RT
Date:
January 30, 2012 06:07
Subject:
[perl #77582] Invocant type empty in error message when calling non-existant method on hash
Message ID:
rt-3.6.HEAD-14510-1327932447-1177.77582-15-0@perl.org
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



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About