Skip to content

Commit aa1bff8

Browse files
committed
Merge pull request #1 from retronym/ticket/7767-test
Test case for SI-7767
2 parents 48283ca + 2391887 commit aa1bff8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

test/scaladoc/run/t7767.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Done.

test/scaladoc/run/t7767.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
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

Comments
 (0)