blob: 635d943f22e4b968288311c15091e3092085d542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// "Wrap expression in parentheses" "true"
// ERROR: 'when' expression must be exhaustive, add necessary 'true', 'false' branches or 'else' branch instead
interface A {
operator fun contains(other: A): Boolean
}
fun test(x: A, b: Boolean) {
when (b) {
x in x<caret> -> {}
}
}
|