summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-bundle-overloaded.scala
blob: a4bc66f97451cf804d7dc0ae05ebec251b3411ee (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
}