import scala.language.experimental.macrosimport scala.reflect.macros.blackbox.Contextobject Y {def m(g: () => Int): Unit = macro impldef impl(c: Context)(g: c.Tree): c.Tree = {import c.universe._q"{ () => $g() }.apply()"}}
object X {def f(): Unit = {val thisIsTheVal = 0Y.m { () => thisIsTheVal }}}
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-interna...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hmmm... OK
Thanks!
You received this message because you are subscribed to a topic in the Google Groups "scala-internals" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scala-internals/W4pggkPRiFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scala-interna...@googlegroups.com.