Remove braces: add parentheses to if-else in more general case

Related to KT-18308
This commit is contained in:
Mikhail Glukhikh
2018-01-29 14:29:48 +03:00
parent 44c15d8311
commit 8cbf364457
4 changed files with 22 additions and 2 deletions
@@ -0,0 +1,7 @@
// WITH_RUNTIME
fun test(b: Boolean) {
val list1 = mutableListOf(1)
val list2 = mutableListOf(2)
if (b) {list1} else <caret>{list2} += 3
}