mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
307 B
Plaintext
Vendored
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 }
|
|
^
|