diff options
Diffstat (limited to 'test/files/run/iq.scala')
-rw-r--r-- | test/files/run/iq.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/files/run/iq.scala b/test/files/run/iq.scala new file mode 100644 index 0000000000..67a1a41296 --- /dev/null +++ b/test/files/run/iq.scala @@ -0,0 +1,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; + (); + } +} |