summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bodyexpandstoimpl/Macros_Test_2.scala
blob: b589d4be03d1518e61dec5057bbe10c1f6ed29f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.macros.{Context => Ctx}

object Macros {
  def foo(x: Int) = macro Impls.refToFoo(42)
}

object Test extends App {
  import Macros._
  println(foo(42))
}