summaryrefslogtreecommitdiff
path: root/test/pending/pos/t5534.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-05-08 01:05:14 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-05-08 01:06:32 +0200
commit07255d54926e2cf3ad6ee62e7f234ec4c123c489 (patch)
tree65255780e660a079aa035c2c176431d5892dc10f /test/pending/pos/t5534.scala
parent7cac6334d4437ff54c4979799574045501f64135 (diff)
downloadscala-07255d54926e2cf3ad6ee62e7f234ec4c123c489.tar.gz
scala-07255d54926e2cf3ad6ee62e7f234ec4c123c489.tar.bz2
scala-07255d54926e2cf3ad6ee62e7f234ec4c123c489.zip
test for SI-5534
Diffstat (limited to 'test/pending/pos/t5534.scala')
-rw-r--r--test/pending/pos/t5534.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pending/pos/t5534.scala b/test/pending/pos/t5534.scala
new file mode 100644
index 0000000000..834c4fd68d
--- /dev/null
+++ b/test/pending/pos/t5534.scala
@@ -0,0 +1,11 @@
+object Phrase extends Enumeration {
+ type Phrase = Value
+ val PHRASE1 = Value("My phrase 1")
+ val PHRASE2 = Value("My phrase 2")
+}
+
+class Entity(text:String)
+
+object Test {
+ val myMapWithPhrases = Phrase.values.map(p => (p -> new Entity(p.toString))).toMap
+} \ No newline at end of file