diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-21 20:42:24 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-21 20:42:24 +0200 |
commit | 40c7daf254f40bcf830825da6e067908b01f1507 (patch) | |
tree | 4dd4319a75c3ed64dfeee41af871a77e9106a37a /test | |
parent | 8d5e09a1b983be7f82b5c583ab99392669efc3f7 (diff) | |
download | dokka-40c7daf254f40bcf830825da6e067908b01f1507.tar.gz |
fix rendering of extension function types
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/extensionFunctionParameter.kt | 1 | ||||
-rw-r--r-- | test/data/format/extensionFunctionParameter.md | 8 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/data/format/extensionFunctionParameter.kt b/test/data/format/extensionFunctionParameter.kt new file mode 100644 index 000000000..bfb344b9a --- /dev/null +++ b/test/data/format/extensionFunctionParameter.kt @@ -0,0 +1 @@ +public inline fun <T> T.apply(f: T.() -> Unit): T { f(); return this } diff --git a/test/data/format/extensionFunctionParameter.md b/test/data/format/extensionFunctionParameter.md new file mode 100644 index 000000000..6980912d4 --- /dev/null +++ b/test/data/format/extensionFunctionParameter.md @@ -0,0 +1,8 @@ +[test](test/index) / [apply](test/apply) + + +# apply + +`inline fun <T> T.apply(f: T.() -> Unit): T` + + diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 0df25fd57..32a641ff7 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -167,4 +167,10 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Foo" }) } } + + @Test fun extensionFunctionParameter() { + verifyOutput("test/data/format/extensionFunctionParameter.kt", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } } |