From 5b394541a253a5bfbc4cab52f7547c63cac47ebf Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Tue, 23 Mar 2010 15:23:39 +0000 Subject: Added test case for #3186. Closes #3186. --- test/files/run/t3186.check | 1 + test/files/run/t3186.scala | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test/files/run/t3186.check create mode 100644 test/files/run/t3186.scala diff --git a/test/files/run/t3186.check b/test/files/run/t3186.check new file mode 100644 index 0000000000..c508d5366f --- /dev/null +++ b/test/files/run/t3186.check @@ -0,0 +1 @@ +false diff --git a/test/files/run/t3186.scala b/test/files/run/t3186.scala new file mode 100644 index 0000000000..2534d4a164 --- /dev/null +++ b/test/files/run/t3186.scala @@ -0,0 +1,7 @@ +object Dist1 extends Enumeration { val Mile, Foot, Inch = Value } + +object Dist2 extends Enumeration { val Kilometer, Millimeter, Parsec = Value } + +object Test extends Application { + println(Dist1.Mile == Dist2.Kilometer) +} -- cgit v1.2.3