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