summaryrefslogtreecommitdiff
path: root/test/files/run/iq.scala
blob: 67a1a412965c71f881f6833bdfda753db585c028 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $Id$ */

object iq {
  def main = {
    val q:scala.collection.immutable.Queue[Int] =
	scala.collection.immutable.Queue.Empty;
    if(q.isEmpty) {
      java.lang.System.out.println("Empty");
    }

    val q2 = q + 42;

    if(q2.isEmpty) {
      java.lang.System.out.println("Empty");
    }

  }
}

object Test {
  def main(args: Array[String]): Unit = {
    iq.main;
    ();
  }
}