diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-17 15:52:45 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-17 16:03:57 +0200 |
commit | 4faaa82910940ffd5eaf0b853ec041176ec7fd0d (patch) | |
tree | f83b084f98c1d24d0b5fde000f39b6967daa1c6a /test/files/run/t7852.scala | |
parent | 9fee7b6a2ac8663b0608b85001259320e1409a04 (diff) | |
download | scala-4faaa82910940ffd5eaf0b853ec041176ec7fd0d.tar.gz scala-4faaa82910940ffd5eaf0b853ec041176ec7fd0d.tar.bz2 scala-4faaa82910940ffd5eaf0b853ec041176ec7fd0d.zip |
SI-7852 Test to show status quo of for SomeModule.==
For which we can also elide the null check, and will in the
next commit.
Diffstat (limited to 'test/files/run/t7852.scala')
-rw-r--r-- | test/files/run/t7852.scala | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test/files/run/t7852.scala b/test/files/run/t7852.scala index eed211c7bc..3c930fbbc1 100644 --- a/test/files/run/t7852.scala +++ b/test/files/run/t7852.scala @@ -5,16 +5,25 @@ import scala.tools.nsc.util.stringFromWriter object Test extends BytecodeTest { def show { val classNode = loadClassNode("Lean") - val meth = getMethod(classNode, "foo") - println(meth.getClass) - val textifier = new Textifier() - meth.accept(new TraceMethodVisitor(textifier)) - println(stringFromWriter(w => textifier.print(w))) + def showMethod(name: String) { + val meth = getMethod(classNode, name) + println(name) + val textifier = new Textifier() + meth.accept(new TraceMethodVisitor(textifier)) + println(stringFromWriter(w => textifier.print(w))) + println() + } + showMethod("string") + showMethod("module") } } class Lean { - def foo { + def string { "" == toString } + + def module { + Nil == (toString: Any) + } } |