1 2 3 4 5 6 7 8 9 10 11 12 13 14
package test3 import scala.collection.mutable.LinkedHashMap trait Main { def asMany : ArrayResult = { object result extends LinkedHashMap[String,String] with ArrayResult { def current = result } result } trait ArrayResult { def current : scala.collection.Map[String,String] } }