Skip to content

Type Parameters in completions from implicit conversions not reducing properly #14687

Closed
@rochala

Description

@rochala

Compiler version

3.1.1

Minimized code

Completion SingleDenotation for snippet below is not reduced properly. It happens when we try to fire completion on implicitly converted type to other, higher kinded type.
Unluckily I don't know if you can check signatures in repl, so we must create snippet.

import scala.language.implicitConversions
implicit def intToOption(f: Int): Option[Int] = Some(f)

1.ma

and now hit completion on 1.ma.

Output

Map method has signature of [A](f: A => B): Option[B]

Expectation

It should be properly reduced to [B](f: Int => B): Option[B]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions