aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3186.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t3186.scala')
-rw-r--r--tests/run/t3186.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t3186.scala b/tests/run/t3186.scala
new file mode 100644
index 000000000..e170a4d50
--- /dev/null
+++ b/tests/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 dotty.runtime.LegacyApp {
+ println(Dist1.Mile == Dist2.Kilometer)
+}