diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-20 14:54:05 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-20 14:54:05 -0700 |
commit | 15fba6bd2eb45ca47e975ef033aaf20136d71c67 (patch) | |
tree | 4c4582657e095e8fb711af2c23ef6e0ae61a3233 /test/files/run | |
parent | b0742ebacb5fb5982baa1096ad12457d9b14124e (diff) | |
parent | 32fd97df41bb2e99018f024f41b06490e41bd7ad (diff) | |
download | scala-15fba6bd2eb45ca47e975ef033aaf20136d71c67.tar.gz scala-15fba6bd2eb45ca47e975ef033aaf20136d71c67.tar.bz2 scala-15fba6bd2eb45ca47e975ef033aaf20136d71c67.zip |
Merge pull request #924 from hubertp/2.10.x-issue/5385
Fix for SI-5385.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t5385.check | 8 | ||||
-rw-r--r-- | test/files/run/t5385.scala | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t5385.check b/test/files/run/t5385.check new file mode 100644 index 0000000000..1df74fcfb5 --- /dev/null +++ b/test/files/run/t5385.check @@ -0,0 +1,8 @@ +[0:9] class Azz +[0:9] class Bzz +[0:9] class Czz +[0:9] class Dzz +[0:11] class Ezz +[0:11] class Fzz +[0:13] class Gzz +[0:13] class Hzz diff --git a/test/files/run/t5385.scala b/test/files/run/t5385.scala new file mode 100644 index 0000000000..b803897e71 --- /dev/null +++ b/test/files/run/t5385.scala @@ -0,0 +1,16 @@ +import scala.tools.partest._ + +object Test extends CompilerTest { + import global._ + override def extraSettings = super.extraSettings + " -Yrangepos" + override def sources = List( + "class Azz", "class Bzz ", "class Czz ", "class Dzz\n", + "class Ezz{}", "class Fzz{} ", "class Gzz { }", "class Hzz { } " + ) + def check(source: String, unit: CompilationUnit) { + unit.body foreach { + case cdef: ClassDef => println("%-15s class %s".format(cdef.pos.show, cdef.name)) + case _ => + } + } +} |