Colonpairs with indirect-lookup as variables fail to compile right #1532
Comments
One thing to be aware of: |
If I understand this correctly, there's no fix, but we could improve the documentation to reflect that named parameter names need to be known at compile time, right? |
No, it is a legitimate bug we should address and move forward. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spotted here: https://stackoverflow.com/questions/44212696/why-doesnt-perl-6s-colon-pair-and-name-interpolation-work-together
Expected these two versions to be equivalent:
The
%::($foo)
construct is already parsed as a variable and colonpairs can handle them, but looks like the colonpair token simply assumes it can strigify theMatch
of the variable to get its name:$<var><desigilname>.Str
The text was updated successfully, but these errors were encountered: