From 5f9bc0570f0e2fc4a80eee592bf2eb3eaddf1390 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Wed, 20 Mar 2013 04:10:07 +0900 Subject: SI-6715 Shouldn't return "" from TermNames.originalName --- test/scaladoc/run/SI-6715.check | 1 + test/scaladoc/run/SI-6715.scala | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/scaladoc/run/SI-6715.check create mode 100644 test/scaladoc/run/SI-6715.scala (limited to 'test/scaladoc/run') diff --git a/test/scaladoc/run/SI-6715.check b/test/scaladoc/run/SI-6715.check new file mode 100644 index 0000000000..619c56180b --- /dev/null +++ b/test/scaladoc/run/SI-6715.check @@ -0,0 +1 @@ +Done. diff --git a/test/scaladoc/run/SI-6715.scala b/test/scaladoc/run/SI-6715.scala new file mode 100644 index 0000000000..92d3376234 --- /dev/null +++ b/test/scaladoc/run/SI-6715.scala @@ -0,0 +1,15 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + def scaladocSettings = "" + + override def code = "object A { def $$ = 123 }" + + def testModel(rootPackage: Package) = { + import access._ + + val method = rootPackage._object("A")._method("$$") + assert(method != null) + } +} -- cgit v1.2.3