aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t8224.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t8224.scala')
-rw-r--r--tests/untried/pos/t8224.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/pos/t8224.scala b/tests/untried/pos/t8224.scala
new file mode 100644
index 000000000..2fae925df
--- /dev/null
+++ b/tests/untried/pos/t8224.scala
@@ -0,0 +1,12 @@
+import language.higherKinds
+
+trait P [N1, +E1[X <: N1]]
+trait PIn[N2, +E2[X <: N2]] extends P[Int,Any]
+
+trait EI extends PIn[Int, Nothing]
+trait NI extends PIn[Int, Nothing]
+
+object Test {
+ val lub = if (true) ??? : EI else ??? : NI
+ val pin: PIn[Int,Nothing] = lub
+}