aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-28 13:05:06 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-10-29 11:57:22 +0100
commit583b5583ec7d1d0ec9c25d694b38055d6ccadd82 (patch)
tree5b348612e188f795f666f7cc1416f3ed10a3c80e /test
parentce82e3ef5d2bae1786d9e3fb1fa84d5fe6929fb6 (diff)
downloaddokka-583b5583ec7d1d0ec9c25d694b38055d6ccadd82.tar.gz
render annotations on types (such as @UnsafeVariance)
Diffstat (limited to 'test')
-rw-r--r--test/data/format/annotatedTypeParameter.kt2
-rw-r--r--test/data/format/annotatedTypeParameter.md8
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
3 files changed, 16 insertions, 0 deletions
diff --git a/test/data/format/annotatedTypeParameter.kt b/test/data/format/annotatedTypeParameter.kt
new file mode 100644
index 000000000..cc3bfc1a8
--- /dev/null
+++ b/test/data/format/annotatedTypeParameter.kt
@@ -0,0 +1,2 @@
+public fun <E> containsAll(elements: Collection<@UnsafeVariance E>): @UnsafeVariance E {
+}
diff --git a/test/data/format/annotatedTypeParameter.md b/test/data/format/annotatedTypeParameter.md
new file mode 100644
index 000000000..7d26a1621
--- /dev/null
+++ b/test/data/format/annotatedTypeParameter.md
@@ -0,0 +1,8 @@
+[test](test/index) / [containsAll](test/contains-all)
+
+
+# containsAll
+
+`fun &lt;E&gt; containsAll(elements:&nbsp;Collection&lt;@UnsafeVariance E&gt;): @UnsafeVariance E`
+
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 9dc10393b..ab905c18c 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -197,4 +197,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ @Test fun annotatedTypeParameter() {
+ verifyOutput("test/data/format/annotatedTypeParameter.kt", ".md", withKotlinRuntime = true) { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}