Rewrite mixed multiple- and single-condition 'when' properly.
#KT-10229 Fixed
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace ',' with '||' in when" "true"
|
||||
fun test(a: Boolean, b: Boolean, c: Boolean) {
|
||||
val c = when {
|
||||
a<caret>, b -> "a"
|
||||
c -> "b"
|
||||
else -> "e"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user