Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created November 16, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/fff40fa9b79118e7845a4a3539db8151 to your computer and use it in GitHub Desktop.
Save Whateverable/fff40fa9b79118e7845a4a3539db8151 to your computer and use it in GitHub Desktop.
evalable6
say grep { ++$_; True }, 1, 2, 3;
(exit code 1)
Cannot resolve caller prefix:<++>(Int); the following candidates
match the type but require mutable arguments:
(Mu:D $a is rw)
(Int:D $a is rw)
The following do not match for other reasons:
(Bool $a is rw)
(Mu:U $a is rw)
(Num:D $a is rw)
(Num:U $a is rw)
(int $a is rw)
(num $a is rw --> num)
in block <unit> at /tmp/urJYNEJ36e line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment