New issue
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
@a.elems does not agree with +@a when a Positional type-object is bound to @a. #5254
Comments
One more reason for making |
FWIW, To me, that's the nail in the coffin for allowing |
I agree on |
sub a(@a) { }
a(List); # same code path as @a := List under the hood |
Potentially, 6.e could refine the type constraint of |
As discussed on IRC#raku-dev, this might be a result of a broader issue because we are asking a type object how many elements it contains or we allow type-objects to be bound to @-sigiled symbols eventhough they don't return anything useful on the promised interface that is
Positional
.Environment
Linux dexhome 6.1.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1 (2023-02-15) x86_64 GNU/Linux
perl6 -v
orraku -v
):Welcome to Rakudo™ v2023.02-139-g47342e10d. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2023.02-3-g6adfc376c.
The text was updated successfully, but these errors were encountered: