summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2012-07-02 16:52:58 +0200
committerVlad Ureche <vlad.ureche@gmail.com>2012-07-16 23:41:43 +0200
commit8291106ec985fbe3ee4b8863ccf238dc1d42af58 (patch)
tree5313b3819accaf557a35962aee579c3e0c87ecf0 /test
parentf881249ba19084b194c0db07fd36ab2a68af5228 (diff)
downloadscala-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.check1
-rw-r--r--test/scaladoc/run/SI-5965.scala24
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