REPL: call 'toString()' for returned values explicitly and correctly report exceptions

#KT-12389 Fixed
This commit is contained in:
Pavel V. Talanov
2016-05-31 18:33:53 +03:00
parent 8ac40d7401
commit 5d31d6d98d
8 changed files with 47 additions and 22 deletions
@@ -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 -> ""