Files
kotlin/compiler/testData/repl/controlFlow/incompleteWhen.repl
Alexander Udalov cbb6269391 REPL: do not report warnings when there are errors
#KT-18349 Fixed
2017-06-08 12:28:06 +03:00

9 lines
307 B
Plaintext
Vendored

>>> val a = when(null) { }
error: 'when' expression must be exhaustive, add necessary 'else' branch
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 }
^