From 23a3ac4ee21499a4d2fbffb5cecff88c7e03790c Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Fri, 27 Mar 2015 19:21:22 -0700 Subject: SI-8210 Scaladoc: Fix the false negative @inheritdoc warning on accessors This fix is just for the false negative warning. Probably we can skip setters entirely, but I'm not 100% sure. --- test/scaladoc/run/SI-8210.check | 1 + test/scaladoc/run/SI-8210.scala | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/scaladoc/run/SI-8210.check create mode 100644 test/scaladoc/run/SI-8210.scala (limited to 'test') diff --git a/test/scaladoc/run/SI-8210.check b/test/scaladoc/run/SI-8210.check new file mode 100644 index 0000000000..619c56180b --- /dev/null +++ b/test/scaladoc/run/SI-8210.check @@ -0,0 +1 @@ +Done. diff --git a/test/scaladoc/run/SI-8210.scala b/test/scaladoc/run/SI-8210.scala new file mode 100644 index 0000000000..3bd818473f --- /dev/null +++ b/test/scaladoc/run/SI-8210.scala @@ -0,0 +1,24 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def code = """ +object Foo { + trait Config { + /** The bar obviously. */ + def bar: Int + } + class ConfigBuilder extends Config { + /** @inheritdoc + * + * The default value is 1234. + */ + var bar: Int = 1234 + } +} + """ + + def scaladocSettings = "" + + def testModel(root: Package) = () +} -- cgit v1.2.3