import scala.language.experimental.macros
object Macros {
  def foo1(x: Any) = macro 2
  def foo2(x: Any) = macro Impls.foo(null)(null)
  def foo3(x: Any) = macro {2; Impls.foo}
  {
    def impl(c: scala.reflect.macros.blackbox.Context) = { import c.universe._; c.Expr[Unit](q"()") }
    def foo = macro impl
    foo
  }
}

object Test extends App {
  import Macros._
  foo1(42)
  foo2(42)
  foo3(42)
}
