aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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