We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently in order to create an anonymous function with inferred type and given name you need to also unquote an empty type:
scala> val name = TermName("x") scala> val expr = q"x + 1" scala> q"($name: ${tq""}) => $expr" res10: reflect.runtime.universe.Function = ((x) => x.$plus(1))
It might be a good idea to allow unquoting of bare names that would automatically imply setting of empty inferred return type.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8455?orig=1 Reporter: @densh Affected Versions: 2.11.0
Sorry, something went wrong.
closing all quasiquotes tickets; see #10755
densh
No branches or pull requests
Currently in order to create an anonymous function with inferred type and given name you need to also unquote an empty type:
It might be a good idea to allow unquoting of bare names that would automatically imply setting of empty inferred return type.
The text was updated successfully, but these errors were encountered: