aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t1466.scala
blob: cacadd53e892a8010da7a55d0adc35986cecc8de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object IOvervalueMyPrivacy {
  private[this] var i = 0
  def go = {
    List(1,2,3).foreach(i += _)
    i
  }
}

object Test extends dotty.runtime.LegacyApp {
  assert(IOvervalueMyPrivacy.go == 6)
}