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







                               
                         
                                     
 
object IOvervalueMyPrivacy {
  private[this] var i = 0
  def go = {
    List(1,2,3).foreach(i += _)
    i
  }
}

object Test extends App {
  assert(IOvervalueMyPrivacy.go == 6)
}