summaryrefslogtreecommitdiff
path: root/test/files/neg/t8764.scala
blob: dc5bfb01606796a0a505b2334875a1d63d6a614a (plain) (blame)
1
2
3
4
5
6
7
8
9
object Main {

  case class IntAndDouble(i: Int, d: Double)

  // a.productElement used to be Int => Double
  // now: Int => AnyVal
  val a = IntAndDouble(1, 5.0)
  val d: Double = a.productElement(0)
}