From e7ce9b9723f98c77dd2d47b1c00cd4f214198243 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 13 May 2010 03:41:17 +0000 Subject: Should fix the interpreter bug I just introduced. crashing-under-optimise test into pending since that looks like a genuine bug - I'll open it a ticket. No review. --- test/pending/run/bug3150.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/pending/run/bug3150.scala (limited to 'test/pending/run') diff --git a/test/pending/run/bug3150.scala b/test/pending/run/bug3150.scala new file mode 100644 index 0000000000..034703b5f7 --- /dev/null +++ b/test/pending/run/bug3150.scala @@ -0,0 +1,10 @@ +object Test { + case object Bob { override def equals(other: Any) = true } + def f(x: Any) = x match { case Bob => Bob } + + def main(args: Array[String]): Unit = { + assert(f(Bob) eq Bob) + assert(f(0) eq Bob) + assert(f(Nil) eq Bob) + } +} -- cgit v1.2.3