Code:
say ‘Hello’; say *...‘WAT’

Result:
Hello
No such method 'succ' for invocant of type 'Whatever'. Did you mean 'sum'?
in block <unit> at -e line 1


Code:
say 0, * ... "what"

Result:
No such method 'pred' for invocant of type 'Whatever'. Did you mean any of
these?
grep
tree

in block <unit> at -e line 1


I guess these errors make sense? Not quite sure why it calls .pred though.

On 2016-07-16 20:26:01, c...@zoffix.com wrote:
> Another similar case:
>
> zoffix@VirtualBox:~/CPANPRC/rakudo$ ./perl6 -e 'say 0, * ... "what"'
> ===SORRY!===
> Method 'pred' not found for invocant of class 'Whatever'

Reply via email to