diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-03-10 17:00:43 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-03-11 18:07:05 +0100 |
commit | 540963f5648f49ea73e1064b0d5185edb1f7884d (patch) | |
tree | 44e5316c4daac1a088d4c1cfaf782792d55f3651 /test | |
parent | 7b72f95a9e328ae6a5c85ee69c0cff668a004d43 (diff) | |
download | scala-540963f5648f49ea73e1064b0d5185edb1f7884d.tar.gz scala-540963f5648f49ea73e1064b0d5185edb1f7884d.tar.bz2 scala-540963f5648f49ea73e1064b0d5185edb1f7884d.zip |
SI-8195 Test case to show this is a dup of SI-8196
Which was fixed in the previous commit.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t8196.scala | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/test/files/run/t8196.scala b/test/files/run/t8196.scala index d526eafbb3..e219ac166b 100644 --- a/test/files/run/t8196.scala +++ b/test/files/run/t8196.scala @@ -1,7 +1,8 @@ +import scala.reflect.runtime.{ universe => ru } + object Test extends App { trait FormTrait { - import scala.reflect.runtime.{ universe => ru } val runtimeMirror = ru.runtimeMirror(this.getClass.getClassLoader) val instanceMirror = runtimeMirror.reflect(this) @@ -26,5 +27,25 @@ object Test extends App { () } - f() + val g = () => { + // Reported as SI-8195, same root cause + trait Form { + + private val runtimeMirror = ru.runtimeMirror(this.getClass.getClassLoader) + private val instanceMirror = runtimeMirror.reflect(this) + private val members = instanceMirror.symbol.typeSignature.members + + } + + val f1 = new Form { + val a = 1 + } + + val f2 = new Form { + val b = f1.a + } + } + + f() + g() } |