aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7928.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t7928.scala')
-rw-r--r--tests/pos/t7928.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/t7928.scala b/tests/pos/t7928.scala
new file mode 100644
index 000000000..d9e29935b
--- /dev/null
+++ b/tests/pos/t7928.scala
@@ -0,0 +1,16 @@
+trait OuterTrait {
+ trait InnerTrait {
+ type Element
+ type Collection <: Iterable[Inner.Element]
+ }
+
+ val Inner: InnerTrait
+
+}
+
+object OuterObject extends OuterTrait {
+ object Inner extends InnerTrait {
+ type Element = String
+ override type Collection = Seq[Inner.Element]
+ }
+}