-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 in kalin-rudnicki/harness
#19415
Comments
This issue started in d6c7e18. In this commit the issue is an infinite loop. b787d3c broke the compiler in some other way. This is because the PR had many commits and some of them where broken. This breaks the assumptions needed to do an automatic bisection. @liufengyun make sure that your commits are squashed before merging them. |
The problematic code came from #18130 |
The issue happens after the call to The following fixes this particular issue, but I am not sure if it is the correct way to fix it. - constrainResult(mt, pt)
+ constrainResult(mt, wildApprox(pt)) |
Why was this assigned to me? |
The commit in #18130 contains this code: def constrainResult(meth: Symbol, mt: Type, pt: Type)(using Context): Boolean =
if (Inlines.isInlineable(meth)) {
// Stricter behaviour in 3.4+: do not apply `wildApprox` to non-transparent inlines So it seems not doing the wildApprox is fully intentional. We can't fix the problem by re-introducing it. |
Seeing that #17924 is at the root of this, I'd like to propose a strategy; Let's all stop fixing any perceived shortcomings related to implicit conversions. Implicit conversions are too finely balanced, anything we do will likely break other stuff (as it did in this case). Also, we really should work hard to get rid of implicit conversions instead of going deeper into the rabbit hole. |
Compiler version
3.4.0-RC1
First bad release: 3.3.2-RC1-bin-20230619-a68568c-NIGHTLY
Bisect points to b787d3c
Not affecting 3.3.2-RC1
Minimized code
Output
Expectation
It probably should compile
The text was updated successfully, but these errors were encountered: