Created
May 11, 2026 01:38
-
-
Save Whateverable/864c4cc8a575ff3f1f3b48c2068a7afc to your computer and use it in GitHub Desktop.
evalable6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub b(Int $p is rw) { say "b: $p" }; sub a(Int $p is rw) { b(++$p) }; my Int $v = 5; a($v); say "v=$v" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (exit code 1) | |
| Parameter '$p' expects a writable container (variable) as an argument, | |
| but got '6' (Int) as a value without a container. | |
| in sub b at /tmp/fLh38a9EoM line 1 | |
| in sub a at /tmp/fLh38a9EoM line 1 | |
| in block <unit> at /tmp/fLh38a9EoM line 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment