Skip to content

Commit 712ce5b

Browse files
committed
Add test
1 parent 9dcd8f3 commit 712ce5b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dokka-subprojects/plugin-base/src/test/kotlin/signatures/SignatureTest.kt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,28 @@ class SignatureTest : BaseAbstractTest() {
454454
}
455455
}
456456

457+
@Test
458+
@OnlySymbols
459+
fun `fun with unresolved parameter`() {
460+
val source = source("fun simpleFun(param: UnresolvedType): Unit")
461+
val writerPlugin = TestOutputWriterPlugin()
462+
463+
testInline(
464+
source,
465+
configuration,
466+
pluginOverrides = listOf(writerPlugin)
467+
) {
468+
renderingStage = { _, _ ->
469+
writerPlugin.writer.renderedContent("root/example/simple-fun.html").firstSignature().match(
470+
"fun ", A("simpleFun"), "(", Parameters(
471+
Parameter("param: UnresolvedType"),
472+
), ")",
473+
ignoreSpanWithTokenStyle = true
474+
)
475+
}
476+
}
477+
}
478+
457479
@Test
458480
fun `fun with vararg`() {
459481
val source = source("fun simpleFun(vararg params: Int): Unit")

0 commit comments

Comments
 (0)