diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-04 02:52:18 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-04 02:52:18 -0700 |
commit | c84e019622f4e5458530e1d45fd735e4a90efd75 (patch) | |
tree | 7fd0fa5e2b968a2c580c51d875533f2dcfdc8774 /test/files/pos | |
parent | b34313db72b7c42fb403677487bd9ac00257993e (diff) | |
parent | 82d2f0c80d5e45df7599a8d4c7d980772d3d4222 (diff) | |
download | scala-c84e019622f4e5458530e1d45fd735e4a90efd75.tar.gz scala-c84e019622f4e5458530e1d45fd735e4a90efd75.tar.bz2 scala-c84e019622f4e5458530e1d45fd735e4a90efd75.zip |
Merge pull request #665 from retronym/ticket/5213
SI-5313 Revert to two traversals in substThisAndSym.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t5313.scala | 30 |
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) + +} |