aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t4243.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t4243.scala')
-rw-r--r--tests/untried/pos/t4243.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t4243.scala b/tests/untried/pos/t4243.scala
new file mode 100644
index 000000000..e6c66faff
--- /dev/null
+++ b/tests/untried/pos/t4243.scala
@@ -0,0 +1,18 @@
+
+
+
+
+object wrap {
+
+ trait DomainLike[@specialized(Int) A, +This <: Domain[A]]
+
+ trait Domain[@specialized(Int) B]
+ extends DomainLike[B, Domain[B]]
+
+ trait IterableDomainLike[@specialized(Int) C, +This <: IterableDomain[C]]
+ extends DomainLike[C, This]
+
+ trait IterableDomain[@specialized(Int) D]
+ extends Domain[D] with IterableDomainLike[D, IterableDomain[D]]
+
+}