aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-12 14:12:17 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-12 14:14:29 +0100
commit216c195f5592e3f4cbf96ed00b3710a46307cd8a (patch)
treeef4a6ba8bdb8d06e00bb1c34b470eb5f196d3272 /tests
parente68d68414fa346fad9dee204746d826ee172e861 (diff)
downloaddotty-216c195f5592e3f4cbf96ed00b3710a46307cd8a.tar.gz
dotty-216c195f5592e3f4cbf96ed00b3710a46307cd8a.tar.bz2
dotty-216c195f5592e3f4cbf96ed00b3710a46307cd8a.zip
Have checkNotPrivate skip over private aliases.
CheckNotPrivate now avoids private aliases, so that types sat prepresentable in transformation phases. This does not solve the problem that private classes or abstract types might leak coming from Scala 2, but there is not really a good cure for that. We can reject them outright or allow them under language:Scala2 and hope for the best.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i1130.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/i1130.scala b/tests/pos/i1130.scala
new file mode 100644
index 000000000..8d71de5e8
--- /dev/null
+++ b/tests/pos/i1130.scala
@@ -0,0 +1,6 @@
+trait A {
+ private type Foo = Int
+
+ def foo: Foo = 1
+}
+class B extends A