From f9b7ea8fa9da20f6758788dd4b2b24820825bc5e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 17:11:51 +0100 Subject: variance modifiers for type projections are separate modifier nodes, not part of the type name --- test/data/format/typeProjectionVariance.kt | 1 + test/data/format/typeProjectionVariance.md | 8 ++++++++ test/src/format/MarkdownFormatTest.kt | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 test/data/format/typeProjectionVariance.kt create mode 100644 test/data/format/typeProjectionVariance.md (limited to 'test') diff --git a/test/data/format/typeProjectionVariance.kt b/test/data/format/typeProjectionVariance.kt new file mode 100644 index 00000000..85ee344d --- /dev/null +++ b/test/data/format/typeProjectionVariance.kt @@ -0,0 +1 @@ +fun Array.foo() {} diff --git a/test/data/format/typeProjectionVariance.md b/test/data/format/typeProjectionVariance.md new file mode 100644 index 00000000..9812ca3f --- /dev/null +++ b/test/data/format/typeProjectionVariance.md @@ -0,0 +1,8 @@ +[test](test/index) / [Array](test/-array/index) + + +### Extensions for Array + + +| [foo](test/-array/foo) | `fun <T> Array<out T>.foo(): Unit` | + diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index b0c254ba..7e379cf9 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -116,4 +116,10 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun typeProjectionVariance() { + verifyOutput("test/data/format/typeProjectionVariance.kt", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } } -- cgit