blob: 06e3bff69dd17b924a0108f7befb8e969b10d82a (
plain) (
tree)
|
|
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 dotty.runtime.LegacyApp {
assert(new Tuple2Int(0)._1 == 1)
assert(new Tuple2Int(0)._2 == 2)
}
|