blob: 8f6cad903a276f22b287231abccc908473c758a0 (
plain) (
tree)
|
|
object opassign {
var count: Int = 0
def next = { count += 1; count }
var x: Int = 0
x += 1
{ var x: Int = 0
x += 1
}
class Ref {
var x: Int = _
}
val r = new Ref
r.x += 1
val arr = new Array[Int](10)
arr(0) += 1
def f(x: Int): Ref = new Ref
f(next).x += 1
val buf = new collection.mutable.ListBuffer[Int]
buf += 1
}
|