summaryrefslogtreecommitdiff
path: root/test/junit/scala/tools/testing/BytecodeTesting.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-05-31 09:45:10 +0200
committerJason Zaugg <jzaugg@gmail.com>2016-06-06 14:37:47 +1000
commit2980c3921f1270f05add25239da93e05f64ad45f (patch)
tree275352bfc451352cf9ecd9761b7da4ad18858349 /test/junit/scala/tools/testing/BytecodeTesting.scala
parente1084299350bcc20f5d412993d77b8f956ba3165 (diff)
downloadscala-2980c3921f1270f05add25239da93e05f64ad45f.tar.gz
scala-2980c3921f1270f05add25239da93e05f64ad45f.tar.bz2
scala-2980c3921f1270f05add25239da93e05f64ad45f.zip
Keep line numbers when inlining from the same compilation unit
So far, line numbers were kept only when inlining from the same class. We can also keep them when inlining from a different class defined in the same compilation unit. Longer-term we should support JSR-45, see SI-7518 and scala-dev#3.
Diffstat (limited to 'test/junit/scala/tools/testing/BytecodeTesting.scala')
-rw-r--r--test/junit/scala/tools/testing/BytecodeTesting.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/junit/scala/tools/testing/BytecodeTesting.scala b/test/junit/scala/tools/testing/BytecodeTesting.scala
index 1a0c1e210a..4ddb6580df 100644
--- a/test/junit/scala/tools/testing/BytecodeTesting.scala
+++ b/test/junit/scala/tools/testing/BytecodeTesting.scala
@@ -29,7 +29,7 @@ class Compiler(val global: Global) {
global.settings.outputDirs.setSingleOutput(new VirtualDirectory("(memory)", None))
}
- private def newRun: global.Run = {
+ def newRun: global.Run = {
global.reporter.reset()
resetOutput()
new global.Run()