aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-01 14:00:29 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-01 14:00:29 +0200
commit011019a20eec1de2bdc699ca81e5465db8d543a9 (patch)
treedf748eb347a1a84270f6802b4755b6a42273b4af /core/src/test
parent792ae5c4099c7a37815888cd1313404375453eea (diff)
downloaddokka-011019a20eec1de2bdc699ca81e5465db8d543a9.tar.gz
dokka-011019a20eec1de2bdc699ca81e5465db8d543a9.tar.bz2
dokka-011019a20eec1de2bdc699ca81e5465db8d543a9.zip
KT-11530: when the receiver type of an extension is generic, use subclass instead of subtype check to determine applicability (subtype check doesn't work because type parameter of receiver type is unrelated to type parameter of base class)
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 508790b1..8fe45106 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -218,6 +218,10 @@ class MarkdownFormatTest {
verifyMarkdownNodeByName("inheritedExtensions", "Bar")
}
+ @Test fun genericInheritedExtensions() {
+ verifyMarkdownNodeByName("genericInheritedExtensions", "Bar")
+ }
+
@Test fun arrayAverage() {
verifyMarkdownNodeByName("arrayAverage", "XArray")
}