aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 16:56:16 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 16:56:16 +0100
commitf8704c63e7ba267beb9370bc22ff96dde75b0f9f (patch)
tree19a6a5ae441a32b8be3140e778ea71443908aa4c /test
parent9829559af837927b25c8dcc207e58806fab7832f (diff)
downloaddokka-f8704c63e7ba267beb9370bc22ff96dde75b0f9f.tar.gz
dokka-f8704c63e7ba267beb9370bc22ff96dde75b0f9f.tar.bz2
dokka-f8704c63e7ba267beb9370bc22ff96dde75b0f9f.zip
variance modifiers for type parameters are separate modifier nodes, not part of the type name
Diffstat (limited to 'test')
-rw-r--r--test/data/format/typeParameterVariance.kt2
-rw-r--r--test/data/format/typeParameterVariance.md14
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
3 files changed, 22 insertions, 0 deletions
diff --git a/test/data/format/typeParameterVariance.kt b/test/data/format/typeParameterVariance.kt
new file mode 100644
index 00000000..28b29f4b
--- /dev/null
+++ b/test/data/format/typeParameterVariance.kt
@@ -0,0 +1,2 @@
+class Foo<out T> {
+}
diff --git a/test/data/format/typeParameterVariance.md b/test/data/format/typeParameterVariance.md
new file mode 100644
index 00000000..a46929ce
--- /dev/null
+++ b/test/data/format/typeParameterVariance.md
@@ -0,0 +1,14 @@
+[test](test/index) / [Foo](test/-foo/index)
+
+
+# Foo
+
+`class Foo&lt;out&nbsp;T&gt; `
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-foo/-init-) | `public Foo()` |
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index cf894898..b0c254ba 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -110,4 +110,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ Test fun typeParameterVariance() {
+ verifyOutput("test/data/format/typeParameterVariance.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}