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

Delias type members in hover #20173

Merged
merged 2 commits into from Apr 29, 2024

Conversation

rochala
Copy link
Contributor

@rochala rochala commented Apr 12, 2024

@rochala rochala requested a review from kasiaMarek April 12, 2024 10:11
tpe.dealias match
case app @ AppliedType(tycon, params) =>
// we dealias applied type params by hand, because `dealias` doesn't do it
AppliedType(tycon, params.map(_.metalsDealias))
AppliedType(tycon, params.map(_.deepDealias))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe delete the comment.

case aliasingBounds: AliasingBounds =>
aliasingBounds.derivedAlias(aliasingBounds.alias.dealias)
case TypeBounds(lo, hi) =>
TypeBounds(lo.dealias, hi.dealias)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not?

Suggested change
TypeBounds(lo.dealias, hi.dealias)
TypeBounds(lo.deepDealias, hi.deepDealias)

rochala and others added 2 commits April 24, 2024 15:04
…as to deepDealias, dealias type members of structural types
@kasiaMarek kasiaMarek force-pushed the dealias-structural-type-members branch from 033ad19 to 3deb867 Compare April 24, 2024 13:37
@kasiaMarek kasiaMarek merged commit e2c456f into scala:main Apr 29, 2024
19 checks passed
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.

Metals does not infer concrete type of path dependent types
2 participants