diff options
author | François Garillot <francois@garillot.net> | 2013-02-19 02:53:47 +0100 |
---|---|---|
committer | François Garillot <francois@garillot.net> | 2013-02-19 03:11:35 +0100 |
commit | c10b7b652501630d4cd2818405c88791792b37eb (patch) | |
tree | 930a5ca4addc9733c5a8e6dc7f0915ede62f89d9 | |
parent | 20ae01f4d86df1e33abaad76be171b596c8f39f3 (diff) | |
download | scala-c10b7b652501630d4cd2818405c88791792b37eb.tar.gz scala-c10b7b652501630d4cd2818405c88791792b37eb.tar.bz2 scala-c10b7b652501630d4cd2818405c88791792b37eb.zip |
unit test ide-t1000567 exercises SI-5063, aka #1000567.
-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) +} |