diff options
Diffstat (limited to 'test/files/pos')
-rwxr-xr-x | test/files/pos/t1545.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/files/pos/t1545.scala b/test/files/pos/t1545.scala deleted file mode 100755 index 51df606da3..0000000000 --- a/test/files/pos/t1545.scala +++ /dev/null @@ -1,16 +0,0 @@ -object Main extends App { - - case class Foo (field : Option[String]) - - val x : PartialFunction[Foo,Int] = - { - c => c.field match { - case Some (s) => 42 - case None => 99 - } - } - - println (x (Foo (None))) // prints 99 - println (x (Foo (Some ("foo")))) // prints 42 - -} |