diff --git a/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt b/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt index 4b95047c9d6..b8bad9df60c 100644 --- a/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt @@ -92,7 +92,7 @@ public abstract class AbstractReplInterpreterTest : UsefulTestCase() { } val actual = when (lineResult.getType()) { - ReplInterpreter.LineResultType.SUCCESS -> lineResult.getValue()?.toString() ?: "" + ReplInterpreter.LineResultType.SUCCESS -> if (!lineResult.isUnit) "${lineResult.value}" else "" ReplInterpreter.LineResultType.RUNTIME_ERROR, ReplInterpreter.LineResultType.COMPILE_ERROR -> lineResult.getErrorText() ReplInterpreter.LineResultType.INCOMPLETE -> INCOMPLETE_LINE_MESSAGE