Skip to content

Duplicated methods from implicit conversions in completions #22624

Open
@tgodzik

Description

@tgodzik
Contributor

Compiler version

3.6.3

Minimized code

Array(1,2,3).fil@@

Output

Multiple filter methods with the same signature.

Expectation

Single filter and filterNot method

First tackled in #14036

Activity

added
area:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other tools
stat:needs triageEvery issue needs to have an "area" and "itype" label
on Feb 18, 2025
rochala

rochala commented on Feb 19, 2025

@rochala
Contributor

I tried fixing this issue some time ago.
As far as I remember, my approach was to adjust implicit search to not search all implicits:
val conversions = new typer.ImplicitSearch(defn.AnyType, qual, pos.span).allImplicits

But rather, actually find the best implicit:
1.isFini one coming from RichInt and the latter from RichLong
I did not not have much of success though

removed
stat:needs triageEvery issue needs to have an "area" and "itype" label
on Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tgodzik@Gedochao@rochala

        Issue actions

          Duplicated methods from implicit conversions in completions · Issue #22624 · scala/scala3