REPL: do not report warnings when there are errors

#KT-18349 Fixed
This commit is contained in:
Alexander Udalov
2016-02-02 08:27:00 +05:30
parent ed922deb93
commit cbb6269391
4 changed files with 32 additions and 8 deletions
@@ -2,9 +2,6 @@
error: 'when' expression must be exhaustive, add necessary 'else' branch
val a = when(null) { }
^
warning: the expression is unused
val a = when(null) { }
^
>>> "" + when (true) { true -> 42 }
error: 'when' expression must be exhaustive, add necessary 'false' branch or 'else' branch instead
"" + when (true) { true -> 42 }