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

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

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