Skip to content

Weird error message with compiler-generated variable names #7808

Closed
scala/scala
#10680
@scabug

Description

@scabug

Can you do something to avoid x$3 in error message? I think that ls instead of x$3 will be much better

type OI = Option[Int]
def boo(z: OI, ls: List[OI], rs: List[OI]): (List[OI], List[OI]) = {
      val (ls,rs) = z match {
        case Some(_) => (z::ls, rs)
        case _       => (ls, z::rs)
      }
      (ls,rs)
}

/* recursive value x$3 needs type
      val (ls,rs): (List[OI], List[OI]) = z match {
           ^
*/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions