Skip to content

Commit f8869f9

Browse files
committed
Fix the test K2 full link should lead to an extension with type params
1 parent dad2f30 commit f8869f9

File tree

1 file changed

+11
-7
lines changed
  • dokka-subprojects/plugin-base/src/test/kotlin/markdown

1 file changed

+11
-7
lines changed

dokka-subprojects/plugin-base/src/test/kotlin/markdown/LinkTest.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ class LinkTest : BaseAbstractTest() {
915915
}
916916

917917
@Test
918-
@OnlySymbols("#3555")
918+
//@OnlySymbols("#3555")
919919
fun `K2 full link should lead to an extension with type params`() {
920920
testInline(
921921
"""
@@ -930,11 +930,11 @@ class LinkTest : BaseAbstractTest() {
930930
|interface MyListWithNumber : List<Number>
931931
|
932932
|/**
933-
| * 1 [List.foo] is resolved
934-
| * 2 [MutableList.foo] is unresolved
935-
| * 3 [MyListWithT.foo] is unresolved
936-
| * 4 [MyListWithTNumberBound.foo] is unresolved in K2
937-
| * 5 [MyListWithNumber.foo] is unresolved in K2
933+
| * 1 [List.foo]
934+
| * 2 [MutableList.foo] is resolved only in K2, but unresolved in K1
935+
| * 3 [MyListWithT.foo] is resolved only in K2, but unresolved in K1
936+
| * 4 [MyListWithTNumberBound.foo]
937+
| * 5 [MyListWithNumber.foo]
938938
| */
939939
|fun usage() {}
940940
""".trimMargin(),
@@ -952,7 +952,11 @@ class LinkTest : BaseAbstractTest() {
952952
)
953953
assertEquals(
954954
listOf(
955-
"List.foo" to fooDRI
955+
"List.foo" to fooDRI,
956+
"MutableList.foo" to fooDRI,
957+
"MyListWithT.foo" to fooDRI,
958+
"MyListWithTNumberBound.foo" to fooDRI,
959+
"MyListWithNumber.foo" to fooDRI,
956960
), module.getAllLinkDRIFrom("usage")
957961
)
958962
}

0 commit comments

Comments
 (0)