blob: 6e5a317932ebcf1bb22ab1b83aaf7087635e9530 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import scala.tools.nsc.doc.model._
import scala.tools.partest.ScaladocModelTest
object Test extends ScaladocModelTest {
override def code = """
class annot() extends annotation.StaticAnnotation {
def this(a: Any) = this()
}
@annot(0)
class B
"""
def scaladocSettings = ""
def testModel(root: Package) = {
import access._
val annotations = root._class("B").annotations
assert(annotations.size == 1)
assert(annotations(0).annotationClass == root._class("annot"))
val args = annotations(0).arguments
assert(args.size == 1)
assert(args(0).value.expression == "0")
}
}
|