summaryrefslogtreecommitdiff
path: root/test/pending/pos/t5534.scala
blob: 834c4fd68d20ebea07cfd24a14cc9a337ed8cbd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
}