summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-tparams-prefix-a/Macros_Test_2.scala
blob: 81ccb7ff42b8155b7177af39abe0d33536af7b5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test extends App {
  class C[T] {
    def foo[U](x: U) = macro Impls.foo[U]
  }

  new C[Int]().foo(42)
  new C[Boolean]().foo(42)
  new C[Int]().foo("42")
  new C[String]().foo(true)
}