Skip to content

Backticked identifiers starting with a number do not show up in REPL tab completions #13076

@harpocrates

Description

@harpocrates

Scala version: all versions of 2.12 and 2.13 I tried, notably 2.12.17 and 2.13.15 (and 2.12.x and 2.13.x at time of opening).

scala> object Test {
     |   def `1 world` = ""
     |   def `one world` = ""
     | }
object Test

scala> Test.
!=(           (universal)   asInstanceOf  (universal)   getClass()    (universal)   notifyAll()   (universal)   (           (deprecated)
##            (universal)   ensuring(     (universal)   hashCode()    (universal)   one world
+(           (deprecated)   eq(           (universal)   isInstanceOf  (universal)   synchronized( (universal)
->(           (universal)   equals(       (universal)   ne(           (universal)   toString()    (universal)
==(           (universal)   formatted(   (deprecated)   notify()      (universal)   wait(         (universal)

Problem

Although one world shows up in completions, 1 world does not. I ran across this indirectly through Metals, where these presentation compiler completions are also missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions