blob: 4b336d56ef65e3ea02337befc45417207ac1f4c7 (
plain)
1
2
3
4
5
6
7
8
|
// "Surround with null check" "true"
// ERROR: 'when' expression must be exhaustive, add necessary 'false' branch or 'else' branch instead
fun foo(arg: Int?, flag: Boolean) {
when (flag) {
true -> arg<caret>.hashCode()
}
}
|