summaryrefslogtreecommitdiff
path: root/test/files/run/t3616.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t3616.scala')
-rw-r--r--test/files/run/t3616.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t3616.scala b/test/files/run/t3616.scala
new file mode 100644
index 0000000000..777b97f9ab
--- /dev/null
+++ b/test/files/run/t3616.scala
@@ -0,0 +1,12 @@
+object X extends Enumeration {
+ val Y = Value
+}
+object Fruit extends Enumeration {
+ val x = X.Y
+ val A,B,C = Value
+}
+object Test {
+ def main(args: Array[String]): Unit = {
+ println(Fruit.values)
+ }
+}