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

Exports: Refine canForward for selections on this #22503

Closed
wants to merge 4 commits into from

Conversation

bracevac
Copy link
Contributor

@bracevac bracevac commented Feb 3, 2025

Fix #22147

Co-authored-by: Jan-Pieter van den Heuvel jan-pieter@users.noreply.github.com
Co-authored-by: Willem W Bakker wwbakker@users.noreply.github.com

Fixes the typeclass-aggregates test. We now reject selections on `this`
in `canForward` only if the selection has an empty qualifier.
@bracevac bracevac marked this pull request as ready for review February 3, 2025 19:17
@bracevac bracevac requested a review from odersky February 3, 2025 19:18
@bracevac
Copy link
Contributor Author

bracevac commented Feb 3, 2025

cc @jan-pieter

compiler/src/dotty/tools/dotc/typer/Namer.scala Outdated Show resolved Hide resolved
@wwbakker
Copy link
Contributor

wwbakker commented Feb 4, 2025

You found a solution, well done @bracevac!

Co-authored-by: Jan-Pieter van den Heuvel <jan-pieter@users.noreply.github.com>
Co-authored-by: Willem W Bakker <wwbakker@users.noreply.github.com>

Co-authored-by: odersky <odersky@gmail.com>
@bracevac bracevac enabled auto-merge February 4, 2025 09:26
@bracevac bracevac disabled auto-merge February 4, 2025 09:48
odersky added a commit that referenced this pull request Feb 12, 2025
Fix #22147 

Supersedes #22503

Co-authored-by: Jan-Pieter van den Heuvel
<jan-pieter@users.noreply.github.com>
Co-authored-by: Willem W Bakker <wwbakker@users.noreply.github.com>
@bracevac
Copy link
Contributor Author

Closed in favor of the more robust solution in PR #22545

@bracevac bracevac closed this Feb 12, 2025
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.

Exporting this.xxx in this compiles without warning
4 participants