summaryrefslogtreecommitdiff
path: root/test/files/neg/t5923c/Test_2.scala
blob: a00f4ed7dbf482b9837eba74209f8d980fb92b32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// see the comments for macroExpandApply.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)
  }
}