diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug3150.scala | 10 | ||||
-rw-r--r-- | test/files/run/lazy-override-run.check (renamed from test/files/run/lazy-override.check) | 0 | ||||
-rw-r--r-- | test/files/run/lazy-override-run.scala (renamed from test/files/run/lazy-override.scala) | 0 | ||||
-rw-r--r-- | test/files/run/lists-run.scala (renamed from test/files/run/lists.scala) | 0 | ||||
-rw-r--r-- | test/files/run/t2316_run.scala (renamed from test/files/run/t2316.scala) | 0 |
5 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug3150.scala b/test/files/run/bug3150.scala new file mode 100644 index 0000000000..034703b5f7 --- /dev/null +++ b/test/files/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) + } +} diff --git a/test/files/run/lazy-override.check b/test/files/run/lazy-override-run.check index a8f658d7b5..a8f658d7b5 100644 --- a/test/files/run/lazy-override.check +++ b/test/files/run/lazy-override-run.check diff --git a/test/files/run/lazy-override.scala b/test/files/run/lazy-override-run.scala index e5884257a8..e5884257a8 100644 --- a/test/files/run/lazy-override.scala +++ b/test/files/run/lazy-override-run.scala diff --git a/test/files/run/lists.scala b/test/files/run/lists-run.scala index 6c9b55961e..6c9b55961e 100644 --- a/test/files/run/lists.scala +++ b/test/files/run/lists-run.scala diff --git a/test/files/run/t2316.scala b/test/files/run/t2316_run.scala index a3d5bf890b..a3d5bf890b 100644 --- a/test/files/run/t2316.scala +++ b/test/files/run/t2316_run.scala |