aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t1074.scala
blob: a95f9eedbc9ccb0c39e300da2686215c70b7f443 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                  
import scala.collection.immutable._
object Test {
  def main(args : Array[String]) : Unit = {
    var words = "a" :: "b" :: "cd" :: "de" :: "fg" :: "ef" ::
               "gh" :: "jk" :: "hj" :: "kl" :: "lm" :: "mn" :: Nil
    val q0:Set[String] =
      new HashSet[String]() ++ words
    val q1 = q0.filter(w => false)
    val q2 = q1.filter(w => false)
    Console.println("q0 = " + q0)
    Console.println("q1 = " + q1+" "+q1.size)
    Console.println("q2 = " + q2+" "+q2.size)
 }
}