diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-04-07 16:57:00 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-04-07 16:57:00 +0200 |
commit | ec05aeb3d6e414d2abf8354849eeaa7cc75ee477 (patch) | |
tree | 2c72ee1c67544e41c3e8c79a1c4ac6624d94faaa /test/scaladoc/run | |
parent | c74e1325ff1514b1042c959b0b268b3c6bf8d349 (diff) | |
parent | c4561c1d4945a38febc41436ed333569d0e9a063 (diff) | |
download | scala-ec05aeb3d6e414d2abf8354849eeaa7cc75ee477.tar.gz scala-ec05aeb3d6e414d2abf8354849eeaa7cc75ee477.tar.bz2 scala-ec05aeb3d6e414d2abf8354849eeaa7cc75ee477.zip |
Merge pull request #3678 from retronym/ticket/8479
SI-8479 Fix constructor default args under scaladoc
Diffstat (limited to 'test/scaladoc/run')
-rw-r--r-- | test/scaladoc/run/SI-8479.check | 1 | ||||
-rwxr-xr-x | test/scaladoc/run/SI-8479.scala | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/test/scaladoc/run/SI-8479.check b/test/scaladoc/run/SI-8479.check new file mode 100644 index 0000000000..619c56180b --- /dev/null +++ b/test/scaladoc/run/SI-8479.check @@ -0,0 +1 @@ +Done. diff --git a/test/scaladoc/run/SI-8479.scala b/test/scaladoc/run/SI-8479.scala new file mode 100755 index 0000000000..3c91395025 --- /dev/null +++ b/test/scaladoc/run/SI-8479.scala @@ -0,0 +1,32 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.nsc.doc.base._ +import scala.tools.nsc.doc.base.comment._ +import scala.tools.partest.ScaladocModelTest +import java.net.{URI, URL} +import java.io.File + +object Test extends ScaladocModelTest { + + override def code = + """ + |object Test { + | val x = new SparkContext(master = "") + |} + | + |class SparkContext(config: Any) { + | + | /** Scaladoc comment */ + | def this( + | master: String, + | appName: String = "") = this(null) + |} + | + | + """.stripMargin + + override def scaladocSettings = "" + + def testModel(rootPackage: Package) { + // it didn't crash + } +} |