Skip to content
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

Backport "Fix widen types before checking an implicit view exists" to LTS #19071

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

Kordyjan
Copy link
Contributor

Backports #18719 to the LTS branch.

PR submitted by the release tooling.

The implementation here comes from porting from nsc.  But I think
things were done differently enough with its Global state, that make it
not translate nicely here.  So I'm paring it down to what I know works
(at least for me): versions, settings, compilation unit.  Not the
tree/symbol/site stuff.

[Cherry-picked b120977]
It's not possible to convert a method, such as a polymorphic method,
such as `makeChurch`, into another type - we need to widen out the
TermRef to discover the underlying PolyType which isn't a value type.
Failing to do so will create a dummyTreeOfType, which will then be
attempted to be applied, which eventually causes an assertion crash
while building the tpd.TypeApply.

[Cherry-picked 8a2773f]
Base automatically changed from lts-17241 to release-3.3.2 December 8, 2023 15:19
@Kordyjan
Copy link
Contributor Author

Kordyjan commented Dec 8, 2023

No regressions detected in the community build up to lts-16941.

Reference

@Kordyjan Kordyjan merged commit 435daa9 into release-3.3.2 Dec 8, 2023
18 of 19 checks passed
@Kordyjan Kordyjan deleted the lts-18719 branch December 8, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants