summaryrefslogblamecommitdiff
path: root/test/files/run/t5608.scala
blob: 19b3681932e2ec68e1517948861364a663d1bc56 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                      
object Test {
  def main(args:Array[String]) {
    val ns = Array(3L, 3L, 3L)
    val a1: A = new A(ns(0))
    val a2: A = new A(ns(0))
    println(a1 + a2)
  }
}

class A(val u: Long) extends AnyVal {
  def +(other: A) = new A(other.u + u)
}