From 25048bc73741846107c18ed01e0e9f6f07785379 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Mon, 20 Mar 2017 17:13:56 -0700 Subject: rm -r test/{flaky,disabled*,checker-tests,support,debug} keeping this stuff, somewhere, forever and ever and ever is what version control is for. who dares disturb the ancient and accursed tomb of all this code...? --- test/disabled/pos/t1545.scala | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/disabled/pos/t1545.scala (limited to 'test/disabled/pos/t1545.scala') 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 - -} -- cgit v1.2.3