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
It seems that c.inferImplicitValue is ignoring the silent property, because no exception is thrown when the implicit is not available:
scala> import language.experimental.macros import language.experimental.macros scala> import reflect.macros.Context import reflect.macros.Context scala> def fImpl(c: Context): c.Expr[Unit] = { | import c.mirror._ | import c.universe._ | | if (c.inferImplicitValue(typeOf[Int], false) == EmptyTree) | c.abort(c.enclosingPosition, "silent=false is not working") | | reify( () ) | } fImpl: (c: scala.reflect.macros.Context)c.Expr[Unit] scala> def f = macro fImpl f: Unit scala> f <console>:12: error: silent=false is not working f ^
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7047?orig=1 Reporter: Jesús López González (jlg) Affected Versions: 2.10.0
Sorry, something went wrong.
@xeno-by said: scala/scala#2494
@xeno-by said: Fixed in scala/scala@b4da864
xeno-by
No branches or pull requests
It seems that c.inferImplicitValue is ignoring the silent property, because no exception is thrown when the implicit is not available:
The text was updated successfully, but these errors were encountered: