Skip to content

Renaming an object symbol does not affect end markers #7246

Closed
scala/scala3
#22798
@odersky

Description

@odersky

Rename foo to bar in

    object foo:
       def x = 1
    end foo

You get:

    object bar:
       def x = 1
    end foo

The end marker is not renamed. Renaming does work for def foo, but not for object foo.

Expected behaviour:

End markers should be renamed in all cases

Operating system:
Mac OS X

Java version:
17.0.13

Editor/extension:
Visual Studio Code v1.97.1

Metals version:
1.4.2

Extra context or search terms:

Workspace information:

  • Scala versions: 3.6.4-RC1; 2.12.20; 2.13.16
  • Build tools: 0. sbt
  • Build servers:
    0. sbt v1.10.5
  • All build tools in workspace: Bloop; sbt

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 compilerspree

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions