REPL: call 'toString()' for returned values explicitly and correctly report exceptions
#KT-12389 Fixed
This commit is contained in:
@@ -93,7 +93,7 @@ abstract class AbstractReplInterpreterTest : KtUsefulTestCase() {
|
||||
}
|
||||
|
||||
val actual = when (lineResult) {
|
||||
is LineResult.ValueResult -> "${lineResult.value}"
|
||||
is LineResult.ValueResult -> lineResult.valueAsString
|
||||
is LineResult.Error -> lineResult.errorText
|
||||
LineResult.Incomplete -> INCOMPLETE_LINE_MESSAGE
|
||||
LineResult.UnitResult -> ""
|
||||
|
||||
Reference in New Issue
Block a user