Skip to content

Wrong details for sliding method #3915

Open
@tgodzik

Description

@tgodzik

Describe the bug

This shows up in the CompletionDocSuite:

  check(
    "scala1",
    """
      |object A {
      |  List(1).iterator.sliding@@
      |}
    """.stripMargin,
    """|sliding[B >: Int](size: Int, step: Int = 1): Iterator[Int]#GroupedIterator[B]
       |""".stripMargin,
    compat = Map(
      "3" ->
        """|sliding[B >: Int](size: Int, step: Int = 1): $1$.GroupedIterator[B]
           |""".stripMargin
    )
  )

There should ideally be no difference between the main expectation and the Scala 3 one

Expected behavior

Iterator[Int]#GroupedIterator[B] is shown.

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v0.11.5

Extra context or search terms

completions iterator sliding

Metadata

Metadata

Assignees

No one assigned

    Labels

    Scala 3Generic ticket relating to Scala 3bugSomething that is making a piece of functionality unusablepresentation-compilerSomething relating to the presentation compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions