aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t708.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t708.scala')
-rw-r--r--tests/untried/neg/t708.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/neg/t708.scala b/tests/untried/neg/t708.scala
new file mode 100644
index 000000000..f86a00581
--- /dev/null
+++ b/tests/untried/neg/t708.scala
@@ -0,0 +1,12 @@
+trait A {
+ type T;
+ trait X {
+ private[A] type S <: T;
+ /*private[A]*/ def foo : S;
+ }
+ trait Y extends X {
+ override private[A] type S = Any;
+ override /*private[A]*/ def foo = null;
+ }
+}
+