diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-19 08:00:45 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-19 08:00:45 -0800 |
commit | 121562315909275520acfeb655dd1c20abc95e2f (patch) | |
tree | 84f8bab90345ce1116d14c5c68408f578c913ba7 /test/files/presentation | |
parent | 9ddd57315d2ff6ef0f61a4b8cc9a30891993898f (diff) | |
parent | c10b7b652501630d4cd2818405c88791792b37eb (diff) | |
download | scala-121562315909275520acfeb655dd1c20abc95e2f.tar.gz scala-121562315909275520acfeb655dd1c20abc95e2f.tar.bz2 scala-121562315909275520acfeb655dd1c20abc95e2f.zip |
Merge pull request #2137 from huitseeker/issue/value-protected-in-inherited-1000567
SI-5013 / #1000567 : added presentation test for fixed bug
Diffstat (limited to 'test/files/presentation')
-rw-r--r-- | test/files/presentation/ide-t1000567.check | 1 | ||||
-rw-r--r-- | test/files/presentation/ide-t1000567/Runner.scala | 15 | ||||
-rw-r--r-- | test/files/presentation/ide-t1000567/src/a/a.scala | 5 | ||||
-rw-r--r-- | test/files/presentation/ide-t1000567/src/b/b.scala | 5 |
4 files changed, 26 insertions, 0 deletions
diff --git a/test/files/presentation/ide-t1000567.check b/test/files/presentation/ide-t1000567.check new file mode 100644 index 0000000000..6d62cb3e13 --- /dev/null +++ b/test/files/presentation/ide-t1000567.check @@ -0,0 +1 @@ +reload: a.scala, b.scala diff --git a/test/files/presentation/ide-t1000567/Runner.scala b/test/files/presentation/ide-t1000567/Runner.scala new file mode 100644 index 0000000000..77a618b60a --- /dev/null +++ b/test/files/presentation/ide-t1000567/Runner.scala @@ -0,0 +1,15 @@ +import scala.tools.nsc.interactive.tests.InteractiveTest + +// also known as SI-5013 + +object Test extends InteractiveTest { + + override def runDefaultTests(): Unit = { + val a = sourceFiles.find(_.file.name == "a.scala").head + val b = sourceFiles.find(_.file.name == "b.scala").head + askLoadedTyped(a).get + askLoadedTyped(b).get + super.runDefaultTests() + } + +} diff --git a/test/files/presentation/ide-t1000567/src/a/a.scala b/test/files/presentation/ide-t1000567/src/a/a.scala new file mode 100644 index 0000000000..ee21112a3e --- /dev/null +++ b/test/files/presentation/ide-t1000567/src/a/a.scala @@ -0,0 +1,5 @@ +package a + +class Foo { + protected[Foo] var x = 0 +} diff --git a/test/files/presentation/ide-t1000567/src/b/b.scala b/test/files/presentation/ide-t1000567/src/b/b.scala new file mode 100644 index 0000000000..a0185b15cf --- /dev/null +++ b/test/files/presentation/ide-t1000567/src/b/b.scala @@ -0,0 +1,5 @@ +package b + +class Bar extends a.Foo { + println(x) +} |