aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content/signatures
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-09-09 15:42:35 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-09-10 13:11:02 +0200
commita5434ae0141ac1a3d150f76937b0456ad15030e0 (patch)
treef9f01183c565a5c2ac02d451c332fb93b6fb6a7f /plugins/base/src/test/kotlin/content/signatures
parent3845e64c04fa5a7fc51370bbc55aa694697919cf (diff)
downloaddokka-a5434ae0141ac1a3d150f76937b0456ad15030e0.tar.gz
dokka-a5434ae0141ac1a3d150f76937b0456ad15030e0.tar.bz2
dokka-a5434ae0141ac1a3d150f76937b0456ad15030e0.zip
Fix showing fully qualified name for typealiases with clashing names
Diffstat (limited to 'plugins/base/src/test/kotlin/content/signatures')
-rw-r--r--plugins/base/src/test/kotlin/content/signatures/ContentForSignaturesTest.kt24
1 files changed, 23 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/content/signatures/ContentForSignaturesTest.kt b/plugins/base/src/test/kotlin/content/signatures/ContentForSignaturesTest.kt
index cabe822d..908109bf 100644
--- a/plugins/base/src/test/kotlin/content/signatures/ContentForSignaturesTest.kt
+++ b/plugins/base/src/test/kotlin/content/signatures/ContentForSignaturesTest.kt
@@ -448,7 +448,29 @@ class ContentForSignaturesTest : AbstractCoreTest() {
pagesTransformationStage = { module ->
val page = module.children.single { it.name == "test" } as PackagePageNode
page.content.assertNode {
- typealiasSignature("Alias", "other.X")
+ typealiasSignature("Alias", "X")
+ }
+ }
+ }
+ }
+
+ @Test
+ fun `typealias to type in different package with same name`() {
+ testInline(
+ """
+ |/src/main/kotlin/test/source.kt
+ |package test
+ |typealias Alias = other.Alias
+ |
+ |/src/main/kotlin/test/source2.kt
+ |package other
+ |class Alias
+ """.trimIndent(), testConfiguration
+ ) {
+ pagesTransformationStage = { module ->
+ val page = module.children.single { it.name == "test" } as PackagePageNode
+ page.content.assertNode {
+ typealiasSignature("Alias", "other.Alias")
}
}
}