summaryrefslogblamecommitdiff
path: root/test/files/run/t8823.scala
blob: 0ac653566a41c4de1a4f10cf1bc3ebd4af09f517 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                            
class Tuple2Int(val encoding: Long) extends AnyVal with Product2[Int, Int] {
  def canEqual(that: Any) = false
  def _1: Int = 1
  def _2: Int = 2
}

object Test extends App {
  assert(new Tuple2Int(0)._1 == 1)
  assert(new Tuple2Int(0)._2 == 2)
}