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

Dealias type references when healing types in quotes #17049

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

nicolasstucki
Copy link
Contributor

We where only doing the dealiasing if the type had no prefix but missed it if the type reference was on some path.

Fixes #17037

We where only doing the dealiasing if the type had no prefix but missed
it if the type reference was on some path.

Fixes scala#17037
@nicolasstucki nicolasstucki marked this pull request as ready for review March 6, 2023 14:27
@nicolasstucki nicolasstucki assigned natsukagami and unassigned smarter Mar 9, 2023
Copy link
Contributor

@natsukagami natsukagami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe update this comment to tryHealTypeOfType?
https://github.com/lampepfl/dotty/blob/bb5c0987d25ca1063ee15ca2c0060a6c1ec679b0/compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala#L187

Also do we need/want to change the tryHeal in healTypeOfTerm?

@nicolasstucki
Copy link
Contributor Author

Also do we need/want to change the tryHeal in healTypeOfTerm?

In the next PR I will remove healTypeOfTerm and disentangle the level checking from the healing. I will also rename/refactor tryHealTypeOfType in the process.

@nicolasstucki nicolasstucki merged commit 28676ae into scala:main Mar 10, 2023
@nicolasstucki nicolasstucki deleted the fix-17037 branch March 10, 2023 15:43
@nicolasstucki
Copy link
Contributor Author

Here is the refactoring I mentioned #17082

@Kordyjan Kordyjan added this to the 3.3.1 milestone Aug 1, 2023
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.

Given instance of Type not found for a path dependent type
4 participants