summaryrefslogtreecommitdiff
path: root/test/files/pos/patterns1.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-10-13 19:06:41 +0000
committermichelou <michelou@epfl.ch>2006-10-13 19:06:41 +0000
commitaf511469a6c4323488e1e263cc2f45786f276672 (patch)
tree507ccb0fee6fe1c1b7ef9ea2955c8b3d4d7bbbbe /test/files/pos/patterns1.scala
parentec04190880e49b0d32651fe04e27a67bd952bcdd (diff)
downloadscala-af511469a6c4323488e1e263cc2f45786f276672.tar.gz
scala-af511469a6c4323488e1e263cc2f45786f276672.tar.bz2
scala-af511469a6c4323488e1e263cc2f45786f276672.zip
changed "All/AllRef" to "Nothing/Null" in test/...
changed "All/AllRef" to "Nothing/Null" in test/library/compiler
Diffstat (limited to 'test/files/pos/patterns1.scala')
-rw-r--r--test/files/pos/patterns1.scala16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/files/pos/patterns1.scala b/test/files/pos/patterns1.scala
index fa542e7b06..f660ea0543 100644
--- a/test/files/pos/patterns1.scala
+++ b/test/files/pos/patterns1.scala
@@ -1,13 +1,15 @@
-trait Option[+a] {}
-case class Some[a](x: a) extends Option[a];
-case object None extends Option[All];
+trait Option[+a]
+
+case class Some[a](x: a) extends Option[a]
+
+case object None extends Option[Nothing]
object test {
- def println(str: String): Unit = java.lang.System.out.println(str);
+ def println(str: String): Unit = java.lang.System.out.println(str)
def print(opt: Option[String]) = opt match {
- case Some(x) => println(x);
- case None => println("nothing");
+ case Some(x) => println(x)
+ case None => println("nothing")
}
-} \ No newline at end of file
+}