jason switzer (via RT) wrote:
# New Ticket Created by "jason switzer" # Please include the string: [perl #66006] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66006 >


When a method is called without using one of the available signatures, a
misleading exception is raised:

(22:50:37) s1n: rakudo: class A { multi method foo($f) { say $f} }; my A $aa
.= new; $aa.foo()
(22:50:40) p6eval: rakudo 2376c4: OUTPUT«Could not find non-existent sub
die␤»

Something more like "too few arguments passed (0) - 1 params expected in
method A::foo (<unknown>:1)", which is similar in nature to the undefined
sub error (with my minor change/suggestion).
I suspect that got broken during the recent HLL transition...I'm re-writing the dispatcher anyway now, so will fix this up as part of that process.

Thanks,

Jonathan

Reply via email to