aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macroPlugins-macroExpand/Macros_2.scala
blob: c9c88ad2fdfd7484a35f4eba58e3b4daa56ef90b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Context

object Macros {
  def impl1(c: Context) = {
    import c.universe._
    q"""println("impl1")"""
  }

  def impl2(c: Context) = {
    import c.universe._
    q"""println("impl2")"""
  }

  def foo1: Unit = macro impl1

  def foo2: Unit = macro impl2
}