diff --git a/idea/src/org/jetbrains/kotlin/idea/editor/fixers/KotlinValueArgumentListFixer.kt b/idea/src/org/jetbrains/kotlin/idea/editor/fixers/KotlinValueArgumentListFixer.kt index 8355b973410..cdc814afe37 100644 --- a/idea/src/org/jetbrains/kotlin/idea/editor/fixers/KotlinValueArgumentListFixer.kt +++ b/idea/src/org/jetbrains/kotlin/idea/editor/fixers/KotlinValueArgumentListFixer.kt @@ -32,7 +32,7 @@ class KotlinValueArgumentListFixer : SmartEnterProcessorWithFixers.Fixer + val aValue = "" + } + """, + """ + fun foo(s: String) = 1 + fun test() { + foo("") + val aValue = "" + } + """ + ) + + fun testValueArgumentList7() = doFileTest( + """ + fun test() { + String.to("123" + val aValue = "" + } + """, + """ + fun test() { + String.to("123") + + val aValue = "" + } + """ + ) + fun doFunTest(before: String, after: String) { fun String.withFunContext(): String { val bodyText = "//----\n${this.trimIndent()}\n//----"