aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala
blob: 72183ba8639bbc4205cdfdc921fd3524b1153a64 (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 dotty.runtime.LegacyApp {
  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)
  }
}