aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i997.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-08 14:51:04 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-19 16:57:36 +0100
commit54702905111ecc363d6312635415fd9ee7976356 (patch)
tree1670f4239726e7021ee87847ab43966136b438d8 /tests/neg/i997.scala
parent19026b87c47a5aeca98387f39f6d59fae5bec846 (diff)
downloaddotty-54702905111ecc363d6312635415fd9ee7976356.tar.gz
dotty-54702905111ecc363d6312635415fd9ee7976356.tar.bz2
dotty-54702905111ecc363d6312635415fd9ee7976356.zip
Move leak detection to Checking
Also: include a test that private aliases are transparent.
Diffstat (limited to 'tests/neg/i997.scala')
-rw-r--r--tests/neg/i997.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/neg/i997.scala b/tests/neg/i997.scala
index bfcf5637e..8a21661fb 100644
--- a/tests/neg/i997.scala
+++ b/tests/neg/i997.scala
@@ -1,9 +1,11 @@
class C {
private type T = E
+ private type Tok = D
private val p: C = new C
def f1(x: T): Unit = () // error
+ def f1(x: Tok): Unit = () // ok
def f2(x: p.D): Unit = () // error
val v1: T = ??? // error