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

Activity

changed the title [-]Insert 'using' when completing inside suing params[/-] [+]Insert 'using' when completing inside using params[/+] on Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @tgodzik

        Issue actions

          Insert 'using' when completing inside using params · Issue #22939 · scala/scala3