diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-07 08:07:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-07 08:07:59 +0000 |
commit | a589cb084bf93facd9a6bd69a2b57de87d0d9134 (patch) | |
tree | 8819a5cbbb7949de6c87f24abdc84cda0c536120 /test/disabled/run/javap.scala | |
parent | 2060b631ab49c2eb65c37d06e322b9294dbb0b22 (diff) | |
download | scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.tar.gz scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.tar.bz2 scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.zip |
Guess I can't have a javap test with no javap.
Diffstat (limited to 'test/disabled/run/javap.scala')
-rw-r--r-- | test/disabled/run/javap.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/disabled/run/javap.scala b/test/disabled/run/javap.scala new file mode 100644 index 0000000000..241a83fa6f --- /dev/null +++ b/test/disabled/run/javap.scala @@ -0,0 +1,24 @@ +import scala.tools.nsc.interpreter._ + +object Test { + def run(args: String) = { + println("Arguments: '" + args + "'") + ILoop.run(""" + |class Bippy { + | private def privateMethod = 5 + | def f[T <: List[_]](x: T): T = x + |} + | + |:javap %s Bippy + """.stripMargin.format(args)).lines map (_.trim) filter { line => + (line startsWith "private") || (line startsWith "public") + } foreach println + } + + def main(args: Array[String]): Unit = { + run("") + run("-v") + run("-s") + run("-private") + } +} |