diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:06:06 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:06:06 +0100 |
commit | 7fb4d948893db3332fcb7610261300cc5b856cff (patch) | |
tree | 23edf3361bb8c50a9ec1281c18c9c23136028744 /core/src/test/kotlin/format | |
parent | b3ce9a8eed32523c3ef2ee1ce186434bd14a6e64 (diff) | |
download | dokka-7fb4d948893db3332fcb7610261300cc5b856cff.tar.gz dokka-7fb4d948893db3332fcb7610261300cc5b856cff.tar.bz2 dokka-7fb4d948893db3332fcb7610261300cc5b856cff.zip |
rewrite propagation of extension functions to subclasses to handle shadowing and applicability more correctly
Diffstat (limited to 'core/src/test/kotlin/format')
-rw-r--r-- | core/src/test/kotlin/format/MarkdownFormatTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt index 58b80cee..509b5f39 100644 --- a/core/src/test/kotlin/format/MarkdownFormatTest.kt +++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt @@ -230,6 +230,14 @@ public class MarkdownFormatTest { verifyMarkdownNodeByName("inheritedCompanionObjectProperties", "C") } + @Test fun shadowedExtensionFunctions() { + verifyMarkdownNodeByName("shadowedExtensionFunctions", "Bar") + } + + @Test fun inapplicableExtensionFunctions() { + verifyMarkdownNodeByName("inapplicableExtensionFunctions", "Bar") + } + private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) { verifyOutput("testdata/format/$fileName.kt", ".package.md", withKotlinRuntime = withKotlinRuntime) { model, output -> markdownService.appendNodes(tempLocation, output, model.members) |