Rewrite mixed multiple- and single-condition 'when' properly.

#KT-10229 Fixed
This commit is contained in:
Dmitry Petrov
2015-11-30 14:43:03 +03:00
parent f7a780f32c
commit f0e467e474
10 changed files with 66 additions and 12 deletions
@@ -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"
}
}