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
Contributor

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
Contributor

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
@tgodzik tgodzik added the area:presentation-compiler Related to the presentation compiler module used by Metals and possibly other tools label May 8, 2024
@Kordyjan Kordyjan added this to the 3.5.0 milestone May 10, 2024
WojciechMazur pushed a commit that referenced this pull request Jul 6, 2024
Fixes scalameta/metals#6230

---------

Co-authored-by: Katarzyna Marek <[email protected]>
[Cherry-picked e2c456f]
WojciechMazur added a commit that referenced this pull request Jul 6, 2024
Backports #20173 to the LTS branch.

PR submitted by the release tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:presentation-compiler Related to the presentation compiler module used by Metals and possibly other tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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