aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i480a.scala
blob: b388f6189273d45e0736b92f340479d7e7b59140 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package test

/** A class defining symbols and types of standard definitions */
class Definitions {

  trait LazyType { def complete(): Unit }

  def f(vcs: List[Int]): Unit = {
    val completer = new LazyType  {
      def complete(): Unit =
        for (i <- 0 until vcs.length if vcs(i) != 0)
          f(vcs.updated(i, 0))
    }
  }
}