Skip to content

No completion on type alias #14984

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
tgodzik opened this issue Apr 20, 2022 · 1 comment · Fixed by #15047
Closed

No completion on type alias #14984

tgodzik opened this issue Apr 20, 2022 · 1 comment · Fixed by #15047
Assignees

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Apr 20, 2022

Compiler version

3.1.1

Minimized code

//> using scala "3.1.1"
//> using option "-Ykind-projector"
package example

trait Service[F[_]] {
  def listStreams(): F[Unit]
}

type Client[Alg[_[_]]] = Alg[Option]

val client: Client[Service] = ???
val client2: Service[Option] = ???

def test = client. /* doesn't work */ listStreams()
def test2 = client2. /* works */ listStreams()

Output

Completions for client do not show anything

Expectation

They should show listStreams

It might be possible to just dealias in:
https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/interactive/Completion.scala#L337

@rochala
Copy link
Contributor

rochala commented Apr 22, 2022

I'll look into this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants