summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-10-18 12:49:17 -0700
committerSom Snytt <som.snytt@gmail.com>2013-10-18 12:49:17 -0700
commite350bd2cbc0183d5bedbdb8fd4101f93da30483b (patch)
tree31dfdd0e3f640ee053b23c72bf984230f258cd19 /test
parent371bad2fe657d7fd065a47dc38fa5ae1fea882a7 (diff)
downloadscala-e350bd2cbc0183d5bedbdb8fd4101f93da30483b.tar.gz
scala-e350bd2cbc0183d5bedbdb8fd4101f93da30483b.tar.bz2
scala-e350bd2cbc0183d5bedbdb8fd4101f93da30483b.zip
[nomaster] SI-6026 backport getResource bug fix
Submitted to master under SI-4936, this fix allows :javap to work when tools.jar is discovered by REPL.
Diffstat (limited to 'test')
-rw-r--r--test/disabled/run/t6026.check9
-rw-r--r--test/disabled/run/t6026.scala9
2 files changed, 18 insertions, 0 deletions
diff --git a/test/disabled/run/t6026.check b/test/disabled/run/t6026.check
new file mode 100644
index 0000000000..779bb3ace5
--- /dev/null
+++ b/test/disabled/run/t6026.check
@@ -0,0 +1,9 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> class Foo
+defined class Foo
+
+scala> :javap Foo
+Compiled from "<console>"public class Foo extends java.lang.Object{ public Foo();}
+scala>
diff --git a/test/disabled/run/t6026.scala b/test/disabled/run/t6026.scala
new file mode 100644
index 0000000000..bee27bc72a
--- /dev/null
+++ b/test/disabled/run/t6026.scala
@@ -0,0 +1,9 @@
+
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ override def code =
+"""|class Foo
+ |:javap Foo
+ |""".stripMargin
+}