From 8291106ec985fbe3ee4b8863ccf238dc1d42af58 Mon Sep 17 00:00:00 2001 From: Vlad Ureche Date: Mon, 2 Jul 2012 16:52:58 +0200 Subject: SI-5965 Scaladoc crash This bug was fixed by the model upgrade in c11427c1. Test case confirmation. --- test/scaladoc/run/SI-5965.check | 1 + test/scaladoc/run/SI-5965.scala | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/scaladoc/run/SI-5965.check create mode 100644 test/scaladoc/run/SI-5965.scala (limited to 'test') diff --git a/test/scaladoc/run/SI-5965.check b/test/scaladoc/run/SI-5965.check new file mode 100644 index 0000000000..619c56180b --- /dev/null +++ b/test/scaladoc/run/SI-5965.check @@ -0,0 +1 @@ +Done. diff --git a/test/scaladoc/run/SI-5965.scala b/test/scaladoc/run/SI-5965.scala new file mode 100644 index 0000000000..6f4540d239 --- /dev/null +++ b/test/scaladoc/run/SI-5965.scala @@ -0,0 +1,24 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + + override def code = """ + abstract class Param + class Test + object Test { + def apply(i: Int): Test = new Test + def apply(i: Int, p: Param = new Param { }): Test = new Test + } + """ + + // no need for special settings + def scaladocSettings = "" + + def testModel(rootPackage: Package) = { + import access._ + + // just need to make sure the model exists + val base = rootPackage._object("Test") + } +} \ No newline at end of file -- cgit v1.2.3