Skip to content
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

support of anonymous arguments broken in quasiquotes #8148

Closed
scabug opened this issue Jan 13, 2014 · 2 comments
Closed

support of anonymous arguments broken in quasiquotes #8148

scabug opened this issue Jan 13, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Jan 13, 2014

scala> (1 to 10).reduce(_ + _)
res1: Int = 55

scala> q"(1 to 10).reduce(_ + _)"
res2: reflect.runtime.universe.Tree = 1.to(10).reduce(((x$1, x$1) => x$1.$plus(x$1)))

scala> tb.typeCheck(res2)
scala.tools.reflect.ToolBoxError: reflective typecheck has failed: x$1 is already defined as (compiler-generated) value x$1

scala> q"(1 to 10).reduce(_ + _)"
res3: reflect.runtime.universe.Tree = 1.to(10).reduce(((x$2, x$2) => x$2.$plus(x$2)))

@scabug
Copy link
Author

scabug commented Jan 13, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8148?orig=1
Reporter: @DarkDimius
Affected Versions: 2.11.0-M7

@scabug
Copy link
Author

scabug commented Jan 16, 2014

@adriaanm said:
scala/scala#3372

@scabug scabug closed this as completed Jan 16, 2014
@scabug scabug added this to the 2.11.0-M8 milestone Apr 7, 2017
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