summaryrefslogtreecommitdiff
path: root/test/pending/pos/t8079c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/t8079c.scala')
-rw-r--r--test/pending/pos/t8079c.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pending/pos/t8079c.scala b/test/pending/pos/t8079c.scala
new file mode 100644
index 0000000000..ae7f37e2bf
--- /dev/null
+++ b/test/pending/pos/t8079c.scala
@@ -0,0 +1,7 @@
+trait F1[/* - */T, /* + */ R]
+
+object Test {
+ import scala.annotation.unchecked._
+ private[this] type VariantF1[-T, +R] = F1[T @uncheckedVariance, R @uncheckedVariance]
+ trait C[+T] { def foo: VariantF1[Any, T] }
+}