diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-04-29 17:32:03 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-04-29 17:32:03 +0000 |
commit | 18cdaae4b61b481ca9b3be48995ea45d1e2aab53 (patch) | |
tree | 47b4437a0bd13eee3f616a4b9f34a3e94772fbf2 | |
parent | 5b937bacd38c34718e16989f3752e1f582ae2698 (diff) | |
download | scala-18cdaae4b61b481ca9b3be48995ea45d1e2aab53.tar.gz scala-18cdaae4b61b481ca9b3be48995ea45d1e2aab53.tar.bz2 scala-18cdaae4b61b481ca9b3be48995ea45d1e2aab53.zip |
[scaladoc] Closes #3302 (case class with privat...
[scaladoc] Closes #3302 (case class with private constructor). No
review.
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/page/Template.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala index 12d24a7953..72cfd9c662 100644 --- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala +++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala @@ -347,7 +347,8 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage { vlsss map { vlss => <span class="params">({implicitCheck(vlss) ++ params0(vlss) })</span> } } mbr match { - case cls: Class if cls.isCaseClass => paramsToHtml(cls.primaryConstructor.get.valueParams) + case cls: Class if cls.isCaseClass && cls.primaryConstructor.isDefined => + paramsToHtml(cls.primaryConstructor.get.valueParams) case ctr: Constructor => paramsToHtml(ctr.valueParams) case dfe: Def => paramsToHtml(dfe.valueParams) case _ => NodeSeq.Empty |