Skip to content

Fix implicit conversion type resolve in completions #15061

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

Conversation

rochala
Copy link
Contributor

@rochala rochala commented Apr 28, 2022

Fixes #14687
The issue above is a result of previous implementation behind implicit conversion completions.

Previously we only checked possible conversions and collected all accessible members from that type.
It was impossible to infer types of type parameters in that solution.

I'm not sure if that's the best way to solve this but right now implicit conversion works similar to extension methods in completions. We try applying conversion to qualifier and then collect accessible members from type after conversion which type parameters are applied.

This will stay as draft until #15047 is merged as it changes completion style and conflicts will arise.

@rochala rochala marked this pull request as ready for review April 29, 2022 08:11
@rochala rochala merged commit 8a83f90 into scala:main May 4, 2022
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.

Type Parameters in completions from implicit conversions not reducing properly
2 participants