diff options
Diffstat (limited to 'test/disabled/pos/t1545.scala')
-rw-r--r-- | test/disabled/pos/t1545.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/disabled/pos/t1545.scala b/test/disabled/pos/t1545.scala deleted file mode 100644 index 4c5908b8a1..0000000000 --- a/test/disabled/pos/t1545.scala +++ /dev/null @@ -1,18 +0,0 @@ -// According to the spec this code should not be legal. -// Disabling for now. -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 - -} |