aboutsummaryrefslogblamecommitdiff
path: root/tests/run/indexedSeq-apply.scala
blob: 455218d2c93d7d81b0f53bb8c1cbd5a75476aa8b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                             
object Test extends dotty.runtime.LegacyApp {
  val empty = IndexedSeq()
  assert(empty.isEmpty)

  val single = IndexedSeq(1)
  assert(List(1) == single.toList)

  val two = IndexedSeq("a", "b")
  assert("a" == two.head)
  assert("b" == two.apply(1))

  println("OK")
}

// vim: set ts=2 sw=2 et: