summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-04 21:09:17 +0000
committerPaul Phillips <paulp@improving.org>2011-11-04 21:09:17 +0000
commit1d4f2d4aa3066d2b3c8b7ecb1ad29d1610026b00 (patch)
treebeaaf74ff79d39c36bb38dae6d7126f553dbd349 /test
parent508101158c87446410606100819b977b379a6620 (diff)
downloadscala-1d4f2d4aa3066d2b3c8b7ecb1ad29d1610026b00.tar.gz
scala-1d4f2d4aa3066d2b3c8b7ecb1ad29d1610026b00.tar.bz2
scala-1d4f2d4aa3066d2b3c8b7ecb1ad29d1610026b00.zip
Fix for Enumeration.
Closes SI-5147.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t5147.check1
-rw-r--r--test/files/run/t5147.scala9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5147.check b/test/files/run/t5147.check
new file mode 100644
index 0000000000..f70f10e4db
--- /dev/null
+++ b/test/files/run/t5147.check
@@ -0,0 +1 @@
+A
diff --git a/test/files/run/t5147.scala b/test/files/run/t5147.scala
new file mode 100644
index 0000000000..6261336f74
--- /dev/null
+++ b/test/files/run/t5147.scala
@@ -0,0 +1,9 @@
+class Test extends Enumeration {
+ val A = Value
+}
+object Test extends Test
+object Test5147 {
+ def main(args: Array[String]): Unit = {
+ println(Test.A)
+ }
+}