We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given sigilless variables are being looked at, a trait may be applied to an anonymous scalar parameter:
LAPTOP-7I9RCT0C:~% raku -e 'sub ($ is readonly) { }(1)' LAPTOP-7I9RCT0C:~%
But not an anonymous term:
LAPTOP-7I9RCT0C:~% raku -e 'sub (\ is readonly) { }(1)'
Should just return like the anonymous scalar case.
Throws:
===SORRY!=== Error while compiling -e Invalid typename 'is' in parameter declaration. at -e:1 ------> sub (\ is⏏ readonly) { }(1)
Run the given golf.
Linux LAPTOP-7I9RCT0C 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 GNU/Linux
perl6 -v
raku -v
Welcome to Rakudo™ v2022.07-13-g10feda116. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.07-2-g5e3ea9ce8.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The Problem
Given sigilless variables are being looked at, a trait may be applied to an anonymous scalar parameter:
But not an anonymous term:
Expected Behavior
Should just return like the anonymous scalar case.
Actual Behavior
Throws:
Steps to Reproduce
Run the given golf.
Environment
perl6 -v
orraku -v
):The text was updated successfully, but these errors were encountered: