-
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
Followup fix to transparent inline conversion #18130
Conversation
It's a super weird program. The problem is the So I think these programs really worked by accident. If more type variables are instantiated that can be good or bad for implicit search
So, there is no clear answer whether we should constrain more or not. It depends on the circumstances. But the point is, #17924 was the correct fix relative to the rationale given in the comment of |
See scala/scala3#18130 for context. We add an explicit type ascription to help the compiler infer contextual arguments.
I am considering this option. What is the impact of making |
No idea. Needs to be tried out. |
For context see scala/scala3#18130. We put fewer constraints to program elaboration by making some methods `transparent`.
I’ve submitted the following "fixes" to the affected projects: stryker-mutator/weapon-regex#230 I would rather see those projects fixed instead of having nonsensical code in the compiler. Does someone have a different opinion? |
We apply the full fix under `-source future` only, and a partial fix otherwise. This is a followup of scala#17924 that fixes the source incompatibilities reported in scala#18130. We test that the behavior under `-source future` still fixes scala#9685, and that without `-source future` we fix both scala#9685 and scala#18130.
0090dd1
to
6eddd57
Compare
We apply the full fix under `-source future` only, and a partial fix otherwise. This is a followup of scala#17924 that fixes the source incompatibilities reported in scala#18123. We test that the behavior under `-source future` still fixes scala#9685, and that without `-source future` we fix both scala#9685 and scala#18123.
I took a different approach. Since there is no evidence we should revert what was done in #17924, I've adjusted the fix to still resolve the original issue #9685 but without causing the source incompatibility reported in #18123. The behavior originally implemented in #17924 is still present under |
See scala/scala3#18130 for context. We add an explicit type ascription to help the compiler infer contextual arguments.
See scala/scala3#18130 for context. We add an explicit type ascription to help the compiler infer contextual arguments.
This reverts commit 3de184c.
Fixes #18123
Follow-up of #17924