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

Use TermRef to distinguish distinct Type[T] instances #17205

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

nicolasstucki
Copy link
Contributor

We used the symbol before, but this ignored the specific path to the
instance of Type[T].

Fixes #16959

We used the symbol before, but this ignored the specific path to the
instance of Type[T].

Fixes scala#16959
name = UniqueName.fresh((splicedTree.symbol.name.toString + "$_").toTermName).toTypeName,
name = UniqueName.fresh(rhs.tpe.dealias.typeSymbol.name.toTypeName),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this is changed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is for debugging purposes. It makes the type simpler to read.

@nicolasstucki nicolasstucki merged commit 7187e22 into scala:main Apr 17, 2023
@nicolasstucki nicolasstucki deleted the fix-16959 branch April 17, 2023 07:03
@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.

Failing to summon given Type[T] instances with path-dependent types
3 participants