diff options
author | Paul Phillips <paulp@improving.org> | 2010-05-13 03:41:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-05-13 03:41:17 +0000 |
commit | e7ce9b9723f98c77dd2d47b1c00cd4f214198243 (patch) | |
tree | 26b6f7d7a5cbf2b9fccca4d61c22e77199610595 /test/pending | |
parent | 5f5660dd6ea1a885eaa95ead9a82b0a94ac09c97 (diff) | |
download | scala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.tar.gz scala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.tar.bz2 scala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.zip |
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.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/bug3150.scala | 10 |
1 files changed, 10 insertions, 0 deletions
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) + } +} |