summaryrefslogtreecommitdiff
path: root/test/files/pos/variances-local.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/variances-local.scala')
-rw-r--r--test/files/pos/variances-local.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/variances-local.scala b/test/files/pos/variances-local.scala
new file mode 100644
index 0000000000..35e395095c
--- /dev/null
+++ b/test/files/pos/variances-local.scala
@@ -0,0 +1,7 @@
+class Foo1[+T] {
+ private[this] type MyType = T
+}
+
+class Foo2[+T] {
+ protected[this] type MyType = T
+}