From 54702905111ecc363d6312635415fd9ee7976356 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 8 Feb 2016 14:51:04 +0100 Subject: Move leak detection to Checking Also: include a test that private aliases are transparent. --- tests/neg/i997.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/neg/i997.scala') 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 -- cgit v1.2.3