diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-27 12:40:34 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-27 12:40:34 -0700 |
commit | 464c9fedd2e3339d3f858213067b07a5b9a28b93 (patch) | |
tree | e1cf85c2f9ae368121a91029339f74766505371d /test/files/run | |
parent | 0c5e2e8f577165ac622a93e0b407f272130f0f37 (diff) | |
parent | c4d0fd9998d96843cd9704d5610a29ab752ecb14 (diff) | |
download | scala-464c9fedd2e3339d3f858213067b07a5b9a28b93.tar.gz scala-464c9fedd2e3339d3f858213067b07a5b9a28b93.tar.bz2 scala-464c9fedd2e3339d3f858213067b07a5b9a28b93.zip |
Merge pull request #2421 from paulp/pr/print-method-positions
-Yshow-member-pos, print the positions of members.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/memberpos.check | 11 | ||||
-rw-r--r-- | test/files/run/memberpos.scala | 39 |
2 files changed, 50 insertions, 0 deletions
diff --git a/test/files/run/memberpos.check b/test/files/run/memberpos.check new file mode 100644 index 0000000000..e7d3534000 --- /dev/null +++ b/test/files/run/memberpos.check @@ -0,0 +1,11 @@ +newSource1 +2,4 class A +6,28 object A + 7,10 def bippy + 8 def hello + 11,27 class Dingo + 12,26 def foooooz + 22 val a +30 class B + 30 def f + diff --git a/test/files/run/memberpos.scala b/test/files/run/memberpos.scala new file mode 100644 index 0000000000..f2b79c0ec1 --- /dev/null +++ b/test/files/run/memberpos.scala @@ -0,0 +1,39 @@ +import scala.tools.partest._ + +// Simple sanity test for -Yshow-member-pos. +object Test extends DirectTest { + override def extraSettings: String = "-usejavacp -Ystop-after:parser -Yshow-member-pos \"\" -d " + testOutput.path + override def show() = compile() + override def code = """ +class A(val a: Int = 1) { + +} + +object A { + def bippy = { + def hello = 55 + "" + hello + } + class Dingo { + def foooooz = /**** + + + + + + ****/ { + + + + val a = 1 + + + a + } + } +} + +class B { def f = 1 } + +""" +} |