Skip to content

Quoted application of varargs method shows an incorrect syntax #7395

@julienrf

Description

@julienrf

minimized code

val expr = Expr(List(1, 2, 3))
println(expr.show) // prints “scala.List.apply[scala.Int](1, 2, 3: _*)”

Try it live: https://scastie.scala-lang.org/E1LT4UfBTgepAcHdkSALCA

expectation

expr.show == "scala.List.apply[scala.Int](1, 2, 3)"

(no trailing “: _*”)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions