From 7fb4d948893db3332fcb7610261300cc5b856cff Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 8 Jan 2016 18:06:06 +0100 Subject: rewrite propagation of extension functions to subclasses to handle shadowing and applicability more correctly --- core/src/test/kotlin/format/MarkdownFormatTest.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/src/test') 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) -- cgit