diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-11 07:07:26 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-11 07:07:26 -0700 |
commit | f4a81fe69a13136ce66b963774476277d4464d87 (patch) | |
tree | 5252ea37a80811b96562c014e5e14c2001a33daa /test/files/run/t5064.scala | |
parent | 455526f52c0d7a98f2b0bef8f29e7fb542bfe600 (diff) | |
parent | 228fb309a18d080dbcb2e51c1bbdf74da60865f9 (diff) | |
download | scala-f4a81fe69a13136ce66b963774476277d4464d87.tar.gz scala-f4a81fe69a13136ce66b963774476277d4464d87.tar.bz2 scala-f4a81fe69a13136ce66b963774476277d4464d87.zip |
Merge branch '2.10.x' into topic/inliner-logging
Conflicts:
src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
Diffstat (limited to 'test/files/run/t5064.scala')
-rw-r--r-- | test/files/run/t5064.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/files/run/t5064.scala b/test/files/run/t5064.scala new file mode 100644 index 0000000000..35f0951765 --- /dev/null +++ b/test/files/run/t5064.scala @@ -0,0 +1,23 @@ +import scala.tools.partest._ + +object Test extends CompilerTest { + import global._ + override def extraSettings = super.extraSettings + " -Yrangepos" + override def sources = List( + """|class T5064 { + | List(1) + | Seq(1) + | List + | Seq + | Nil + |}""".stripMargin + ) + def check(source: String, unit: CompilationUnit) { + for (ClassDef(_, _, _, Template(_, _, stats)) <- unit.body ; stat <- stats ; t <- stat) { + t match { + case _: Select | _: Apply | _: This => println("%-15s %s".format(t.pos.show, t)) + case _ => + } + } + } +}
\ No newline at end of file |