diff options
author | odersky <odersky@gmail.com> | 2016-12-17 18:39:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-17 18:39:10 +0100 |
commit | 9bbd04395f30748e57c0c93e768725adfac79769 (patch) | |
tree | a67cfea2c89c2dc7c6456aefde543935ea17bea6 /tests/pos | |
parent | d69e8490dc66f98719fa1483e57d824c3a61f99c (diff) | |
parent | eb4795fb8893b88ffcf471849e3353531f2bc13e (diff) | |
download | dotty-9bbd04395f30748e57c0c93e768725adfac79769.tar.gz dotty-9bbd04395f30748e57c0c93e768725adfac79769.tar.bz2 dotty-9bbd04395f30748e57c0c93e768725adfac79769.zip |
Merge pull request #1767 from dotty-staging/fix-#1755
Fix #1755: Make sure references in outer args are accessible
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1755.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/pos/i1755.scala b/tests/pos/i1755.scala new file mode 100644 index 000000000..1361ebeec --- /dev/null +++ b/tests/pos/i1755.scala @@ -0,0 +1,21 @@ +class hierarOverload { + trait AB { + type TB + protected trait A { val entities: List[TB] } + protected trait B + } + object NAnB { + type TB = nB + type TA = nA + class nA { List[nB]() } + class nB {} + } + def foo = { val t = new NAnB.TB() } +} +class hierarOverload2 { + object NAnB { + type TB = nB + class nB + } + def foo = { val t = new NAnB.TB() } +} |