summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-bundle-polymorphic.scala
blob: b636b6bd6a6b66d6ab90f3b36c821ffc82177110 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Macro

trait Bundle[T] extends Macro {
  def impl = ???
}

object Macros {
  def foo = macro Bundle.impl
  def foo = macro Bundle[Int].impl
  def foo = macro Bundle[Int, Nothing].impl
}