Skip to content

Insert 'using' when completing inside using params #22939

Open
@tgodzik

Description

@tgodzik

Compiler version

3.7.0-RC1

Minimized code

//> using scala 3

def hello(using String): Unit = ???

@main def main1(): Unit =

  val str = "hello"
  hello(st@@)

Output

//> using scala 3

def hello(using String): Unit = ???

@main def main1(): Unit =

  val str = "hello"
  hello(str)

Expectation

//> using scala 3

def hello(using String): Unit = ???

@main def main1(): Unit =

  val str = "hello"
  hello(using str)

since we know that we are in using params

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

    Issue actions