From 68157f09fa18f8ae38109472c219b6c0010cc5e4 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 7 Oct 2020 16:27:00 +0200 Subject: [PATCH] Minor, add temporary workaround for KT-42492 --- .../cli/common/arguments/preprocessCommandLineArguments.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/preprocessCommandLineArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/preprocessCommandLineArguments.kt index 8b74c559429..e258ef09705 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/preprocessCommandLineArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/preprocessCommandLineArguments.kt @@ -83,7 +83,7 @@ private fun Reader.parseNextArgument(): String? { private fun Reader.consumeRestOfQuotedSequence(sb: StringBuilder, quote: Char) { var ch = nextChar() while (ch != null && ch != quote) { - if (ch == BACKSLASH) nextChar()?.apply(sb::append) else sb.append(ch) + if (ch == BACKSLASH) nextChar()?.let { sb.append(it) } else sb.append(ch) ch = nextChar() } }