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
Regression: No such method 'op_props' for invocant of type 'Block' #5221
Comments
Seems to me there are two separate issues in play with this. First: Second: I don't see how that ever would have returned 1. Since the equal sign is part of the operator, there is no synthetic assignment operator, and there is no assignment within the operator routine, so the value 1 would never have been assigned to $foo. It will still be 0. And it is. Leaving aside the problem with the precedence of synthetic operators, (just use <+> for now), I would expect that to be written something like:
So regression and bad example. |
Thanks @thundergnat. Regarding the example, should the documentation be updated to use your amended version? If so, would you like to make the change? |
That example is really bad anyway - By the way: if a7ccfc6 broke the precedence, how come the regression only happened more than 5 years later? That's surely not the whole story - although it's good to know that apparently the issue affects precedence derivation of synthetic operators, thank you. |
Thanks @2colours. |
The Problem
The following example from the documentation fails to compile in 2023.02 (and the current HEAD),
with the following error
Expected Behavior
Compilation without error.
Relatedly, the documentation expects
$foo
to be1
but bisection indicates that when this compiled (≤2022.12), the result was consistently0
.A few relevant bisection logs,
Environment
perl6 -v
orraku -v
): 2023.12The text was updated successfully, but these errors were encountered: