aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/macro-bundle-trait.scala
blob: 2015508b8049b68528cd4ad408c4c448a9feb109 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                            
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Context

trait Bundle {
  val c: Context = ???
  def impl = ???
}

object Macros {
  def foo = macro Bundle.impl
}