aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-blackbox-fundep-materialization/Test_2.scala
blob: 8b60943cfd8d7089544d4cf961179c8850056447 (plain) (blame)
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): Unit = {}
    typed[(Int, String, Boolean)](equiv)
    println(equiv)
  }
}