From 00e9446bfca132bf6ec89b9d75a2b90ad5ea098d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 10 Apr 2012 06:30:08 -0700 Subject: Fix for SI-5648. More care in warning about bad comparisons. --- test/files/run/t5648.check | 4 ++++ test/files/run/t5648.flags | 1 + test/files/run/t5648.scala | 10 ++++++++++ 3 files changed, 15 insertions(+) create mode 100644 test/files/run/t5648.check create mode 100644 test/files/run/t5648.flags create mode 100644 test/files/run/t5648.scala (limited to 'test') diff --git a/test/files/run/t5648.check b/test/files/run/t5648.check new file mode 100644 index 0000000000..1140ff52e2 --- /dev/null +++ b/test/files/run/t5648.check @@ -0,0 +1,4 @@ +true +true +true +true diff --git a/test/files/run/t5648.flags b/test/files/run/t5648.flags new file mode 100644 index 0000000000..e8fb65d50c --- /dev/null +++ b/test/files/run/t5648.flags @@ -0,0 +1 @@ +-Xfatal-warnings \ No newline at end of file diff --git a/test/files/run/t5648.scala b/test/files/run/t5648.scala new file mode 100644 index 0000000000..c5cea9e1cb --- /dev/null +++ b/test/files/run/t5648.scala @@ -0,0 +1,10 @@ +case class C(val s: Int*) + +object Test { + def main(args: Array[String]): Unit = { + println(new C(1, 3, 7) == new C(1, 3, 7)) + println(new C(1, 3, 7) == C(1, 3, 7)) + println(C(1, 3, 7) == new C(1, 3, 7)) + println(C(1, 3, 7) == C(1, 3, 7)) + } +} -- cgit v1.2.3