-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler: fix proc of self causing multidispatch #9972
Conversation
Well, I lied. There's #3822 but I'll fix it in this PR too. We should always do the replacement if there's no |
Done! Ready for another review. |
There's something wrong in what I did but I'll fix it in the next days |
CI is green! Ready for another review. |
Just a heads up this PR broke some stuff in https://github.com/athena-framework/validator. I'm working up a reduction and will create an issue when I got something reproducible. EDIT: See #9972. |
Fixes #9823
Fixes #3822
We rewrite
->foo(X)
to->(x : X) { foo(x) }
in caseself
in that context could cause a multi-dispatch. This is similar to #9824I believe with this, Procs don't have any more bugs (that I am aware of, so this is probably a lie 😛 )