diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/decompiler/textBuilder/JvmDecompiledTextTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/decompiler/textBuilder/JvmDecompiledTextTestGenerated.java index 3bb40f7b6286..fca3434d517a 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/decompiler/textBuilder/JvmDecompiledTextTestGenerated.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/decompiler/textBuilder/JvmDecompiledTextTestGenerated.java @@ -46,6 +46,11 @@ public class JvmDecompiledTextTestGenerated extends AbstractJvmDecompiledTextTes runTest("testData/decompiler/decompiledTextJvm/PackageWithQuotes/"); } + @TestMetadata("ParameterName") + public void testParameterName() throws Exception { + runTest("testData/decompiler/decompiledTextJvm/ParameterName/"); + } + @TestMetadata("TestKt") public void testTestKt() throws Exception { runTest("testData/decompiler/decompiledTextJvm/TestKt/"); diff --git a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName.expected.kt b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName.expected.kt new file mode 100644 index 000000000000..29b6dd325162 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName.expected.kt @@ -0,0 +1,6 @@ +// IntelliJ API Decompiler stub source generated from a class file +// Implementation of methods is not available + +package test + +public inline fun test.Foo.Companion.foo(crossinline block: test.Context.(A, B) -> D): kotlin.Unit { /* compiled code */ } diff --git a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName/Test.kt b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName/Test.kt new file mode 100644 index 000000000000..d9d8170925d0 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/ParameterName/Test.kt @@ -0,0 +1,10 @@ +@file:JvmName("ParameterName") +package test + +class Foo { + companion object +} + +class Context + +inline fun Foo.Companion.foo(crossinline block: Context.(input: A, state: B) -> D) {} \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/intentions/movePropertyToConstructor/functionReference.kt.after b/plugins/kotlin/idea/tests/testData/intentions/movePropertyToConstructor/functionReference.kt.after index 391688c3dbbe..86f19cf261ee 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/movePropertyToConstructor/functionReference.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/movePropertyToConstructor/functionReference.kt.after @@ -6,9 +6,5 @@ fun foo(a: Int, b: String, d: Baz) { } -class TestClass( - val prop1: KFunction3<@ParameterName(name = "a") Int, @ParameterName(name = "b") String, @ParameterName( - name = "d" - ) Baz, Unit> = ::foo -) { +class TestClass(val prop1: KFunction3 = ::foo) { } \ No newline at end of file