summaryrefslogtreecommitdiff
path: root/test/files/run/t3186.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2010-03-23 15:23:39 +0000
committerPhilipp Haller <hallerp@gmail.com>2010-03-23 15:23:39 +0000
commit5b394541a253a5bfbc4cab52f7547c63cac47ebf (patch)
tree631bcd9433a86f43470c2c5e945bc8be63839c64 /test/files/run/t3186.scala
parent2e1aefd1188602c870229d4b6e00d1acfc83036d (diff)
downloadscala-5b394541a253a5bfbc4cab52f7547c63cac47ebf.tar.gz
scala-5b394541a253a5bfbc4cab52f7547c63cac47ebf.tar.bz2
scala-5b394541a253a5bfbc4cab52f7547c63cac47ebf.zip
Added test case for #3186. Closes #3186.
Diffstat (limited to 'test/files/run/t3186.scala')
-rw-r--r--test/files/run/t3186.scala7
1 files changed, 7 insertions, 0 deletions
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)
+}