summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-nsc/files/run/enumerations.check1
-rw-r--r--test-nsc/files/run/enumerations.scala7
2 files changed, 8 insertions, 0 deletions
diff --git a/test-nsc/files/run/enumerations.check b/test-nsc/files/run/enumerations.check
new file mode 100644
index 0000000000..b65db97b5a
--- /dev/null
+++ b/test-nsc/files/run/enumerations.check
@@ -0,0 +1 @@
+RBRACE = }
diff --git a/test-nsc/files/run/enumerations.scala b/test-nsc/files/run/enumerations.scala
new file mode 100644
index 0000000000..b4bd29d5c3
--- /dev/null
+++ b/test-nsc/files/run/enumerations.scala
@@ -0,0 +1,7 @@
+/** Enumerations */
+object Test extends Enumeration {
+
+ val RBRACE = Value("}");
+
+ def main(args:Array[String]): Unit = Console.println("RBRACE = "+RBRACE);
+}