diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tasks/dynamicCalls.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tasks/dynamicCalls.kt index 2db24ff4644..08ef0f2121d 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tasks/dynamicCalls.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tasks/dynamicCalls.kt @@ -136,6 +136,7 @@ class DynamicCallableDescriptors(storageManager: StorageManager, builtIns: Kotli Modality.FINAL, Visibilities.PUBLIC ) + functionDescriptor.setHasSynthesizedParameterNames(true) return functionDescriptor } diff --git a/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayParameterHintsTest.kt b/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayParameterHintsTest.kt index 2c508e0cc98..c3ea64652b8 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayParameterHintsTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayParameterHintsTest.kt @@ -172,4 +172,10 @@ annotation class ManyArgs(val name: String, val surname: String) fun T.test(block: (receiver: T, Int) -> Unit) = block(this, 0) """) } + + fun `test dynamic`() { + check("""fun foo(x: dynamic) { + x.foo("123") + }""") + } }