summaryrefslogtreecommitdiff
path: root/test/files/pos/t5313.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-06-03 23:21:26 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-06-03 23:23:15 +0200
commit82d2f0c80d5e45df7599a8d4c7d980772d3d4222 (patch)
treea418fc772b37368452c3d98d803d1327eb97deed /test/files/pos/t5313.scala
parent85cd96da352c929ea0ce4ba236730579e09c5c4b (diff)
downloadscala-82d2f0c80d5e45df7599a8d4c7d980772d3d4222.tar.gz
scala-82d2f0c80d5e45df7599a8d4c7d980772d3d4222.tar.bz2
scala-82d2f0c80d5e45df7599a8d4c7d980772d3d4222.zip
SI-5313 Revert to two traversals in substThisAndSym.
Partially reverts 334872e.
Diffstat (limited to 'test/files/pos/t5313.scala')
-rw-r--r--test/files/pos/t5313.scala30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/files/pos/t5313.scala b/test/files/pos/t5313.scala
new file mode 100644
index 0000000000..e77b73ca4c
--- /dev/null
+++ b/test/files/pos/t5313.scala
@@ -0,0 +1,30 @@
+object DepBug {
+ class A {
+ class B
+ def mkB = new B
+ def m(b : B) = b
+ }
+
+ trait Dep {
+ val a : A
+ val b : a.B
+ }
+
+ val dep = new Dep {
+ val a = new A
+ val b = a.mkB
+ }
+
+ def useDep(d : Dep) {
+ import d._
+ a.m(b) // OK
+ }
+
+ {
+ import dep._
+ a.m(b) // OK with 2.9.1.final, error on trunk
+ }
+
+ dep.a.m(dep.b)
+
+}