If you accidentally use an `int` variable as a Callable, you get a
helpful error:
<Zoffix> m: my int $i; $i()
<camelia> rakudo-moar 1f29cb: OUTPUT«No such method 'CALL-ME' for
invocant of type 'Int' in block <unit> at <tmp> line 1»
However, that's not the case if the variable is a parameter:
<Zoffix> m: sub (int $i) { $i() }
<camelia> rakudo-moar 1f29cb: OUTPUT«===SORRY!===callee
expression must be an object»
Most heinous issue is the line number/file of the issue is missing
from the error message.
Migrated from rt.perl.org#129772 (status was 'resolved')
Searchable as RT129772$
The text was updated successfully, but these errors were encountered: