summaryrefslogtreecommitdiff
path: root/test/files/pos/t7475d.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t7475d.scala')
-rw-r--r--test/files/pos/t7475d.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t7475d.scala b/test/files/pos/t7475d.scala
new file mode 100644
index 0000000000..497c2bf443
--- /dev/null
+++ b/test/files/pos/t7475d.scala
@@ -0,0 +1,11 @@
+trait T {
+ type TT = T with Any
+ private val priv = 0
+ (??? : TT).priv
+}
+
+trait U {
+ type UU = Any with U
+ private val priv = 0
+ (??? : UU).priv
+}