Skip to content

Implicit conversion using given Conversion clause has no completions #14689

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

Closed
rochala opened this issue Mar 15, 2022 · 2 comments
Closed

Implicit conversion using given Conversion clause has no completions #14689

rochala opened this issue Mar 15, 2022 · 2 comments

Comments

@rochala
Copy link
Contributor

rochala commented Mar 15, 2022

Compiler version

3.1.1

Minimized code

Completions for objects converted with given Conversion[_, _] clause are not present.

Paste following snippet into repl:

import scala.language.implicitConversions
given Conversion[Int, Option[Int]] = Some(_)

Now try to complete 1.m{hit completion}

Output

max, min completion options

Expectation

Option[Int] completions should also be present for 1.m

@rochala rochala added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 15, 2022
@prolativ prolativ added area:repl area:ide and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 15, 2022
@odersky
Copy link
Contributor

odersky commented Mar 15, 2022

There's a fairly high likelihood that new style conversions like this will be disallowed unless the language option is given. They certainly are discouraged now. So this might not be very important to fix.

@rochala
Copy link
Contributor Author

rochala commented Jul 6, 2022

Fixed by accident with #15283

@rochala rochala closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants