diff options
Diffstat (limited to 'tests/pending/pos/patterns1.scala')
-rw-r--r-- | tests/pending/pos/patterns1.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pending/pos/patterns1.scala b/tests/pending/pos/patterns1.scala deleted file mode 100644 index f660ea054..000000000 --- a/tests/pending/pos/patterns1.scala +++ /dev/null @@ -1,15 +0,0 @@ -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 print(opt: Option[String]) = opt match { - case Some(x) => println(x) - case None => println("nothing") - } -} |