summaryrefslogblamecommitdiff
path: root/test/files/run/t8321/Macros_1.scala
blob: 70e44fc7614f9a49ed9085c90cd17b288b4aaf6e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                         
import scala.reflect.macros.whitebox._
import scala.language.experimental.macros

class Bundle(val c: Context) {
  import c.universe._
  def impl = q"new { val x = 2 }"
}

object Macros {
  def foo: Any = macro Bundle.impl
}