# New Ticket Created by  Denis Alexandrov 
# Please include the string:  [perl #130228]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130228 >


Rakudo version 2016.11 built on MoarVM version 2016.11 implementing Perl 6.c 
currently prints rather unhelpful error message for code like this:

> method { self!"bar"() }(42)

> «No such method 'find_private_method' for invocant of type 
> 'Perl6::Metamodel::PackageHOW'␤  in method <anon> at <tmp> line 1␤  in block 
> <unit> at <tmp> line 1␤»

as opposed to something like "Private method call to bar must be fully 
qualified with the package containing the method", at least, even tho for this 
particular case, another kind of message should be given, since there is no way 
to fully-qualify the call using such indirect quoted call syntax.
Having more meaningful messages sure would be helpful.

Reply via email to