diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-07-02 16:52:58 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-07-16 23:41:43 +0200 |
commit | 8291106ec985fbe3ee4b8863ccf238dc1d42af58 (patch) | |
tree | 5313b3819accaf557a35962aee579c3e0c87ecf0 /test | |
parent | f881249ba19084b194c0db07fd36ab2a68af5228 (diff) | |
download | scala-8291106ec985fbe3ee4b8863ccf238dc1d42af58.tar.gz scala-8291106ec985fbe3ee4b8863ccf238dc1d42af58.tar.bz2 scala-8291106ec985fbe3ee4b8863ccf238dc1d42af58.zip |
SI-5965 Scaladoc crash
This bug was fixed by the model upgrade in c11427c1. Test case confirmation.
Diffstat (limited to 'test')
-rw-r--r-- | test/scaladoc/run/SI-5965.check | 1 | ||||
-rw-r--r-- | test/scaladoc/run/SI-5965.scala | 24 |
2 files changed, 25 insertions, 0 deletions
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 |