aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-bundle-overloaded.scala
blob: c5120b5b5e29395c822dc024207589dacd19b12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.{Context => BlackboxContext}
import scala.reflect.macros.whitebox.{Context => WhiteboxContext}

class Bundle(val c: BlackboxContext) {
  def this(c: WhiteboxContext) = this(c: BlackboxContext)
  def impl = ???
}

object Macros {
  def foo = macro Bundle.impl
}