summaryrefslogblamecommitdiff
path: root/test/files/run/macro-whitebox-fundep-materialization/Test_2.scala
blob: 40ca1d549c5b2ea623527f06a0a4d2473215ab7e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                                      










                                                             
// see the comments for macroExpand.onDelayed for an explanation of what's tested here
object Test extends App {
  case class Foo(i: Int, s: String, b: Boolean)
  def foo[C, L](c: C)(implicit iso: Iso[C, L]): L = iso.to(c)

  {
    val equiv = foo(Foo(23, "foo", true))
    def typed[T](t: => T) {}
    typed[(Int, String, Boolean)](equiv)
    println(equiv)
  }
}