Skip to content

Quoted application of varargs method shows an incorrect syntax #7395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
julienrf opened this issue Oct 9, 2019 · 0 comments
Closed

Quoted application of varargs method shows an incorrect syntax #7395

julienrf opened this issue Oct 9, 2019 · 0 comments
Assignees

Comments

@julienrf
Copy link
Contributor

julienrf commented Oct 9, 2019

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 “: _*”)

@nicolasstucki nicolasstucki self-assigned this Oct 9, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Oct 9, 2019
nicolasstucki added a commit that referenced this issue Oct 9, 2019
Fix #7395: Handle inlined repeated arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants