We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48283ca + 2391887 commit aa1bff8Copy full SHA for aa1bff8
test/scaladoc/run/t7767.check
@@ -0,0 +1 @@
1
+Done.
test/scaladoc/run/t7767.scala
@@ -0,0 +1,18 @@
+import scala.tools.nsc.doc.model._
2
+import scala.tools.partest.ScaladocModelTest
3
+
4
+object Test extends ScaladocModelTest {
5
6
+ override def code = """
7
+ class Docable extends { /**Doc*/ val foo = 0 } with AnyRef
8
+ """
9
10
+ // no need for special settings
11
+ def scaladocSettings = ""
12
13
+ def testModel(rootPackage: Package) = {
14
+ import access._
15
+ val comment = rootPackage._class("Docable")._value("foo").comment.map(_.body.toString.trim).getOrElse("")
16
+ assert(comment.contains("Doc"), comment)
17
+ }
18
+}
0 commit comments