On Fri Sep 30 21:17:55 2016, c...@zoffix.com wrote:
> 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.
Now the second gives the same error as the first. Test added in 

Reply via email to