aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0165.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0165.scala')
-rw-r--r--tests/pos/t0165.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/pos/t0165.scala b/tests/pos/t0165.scala
new file mode 100644
index 000000000..76aef8524
--- /dev/null
+++ b/tests/pos/t0165.scala
@@ -0,0 +1,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]
+ }
+}