J2K: parenthesize receiver if needed

#KT-10121 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-12-15 16:16:16 +03:00
parent a520e93b5b
commit 3f7b8554dd
15 changed files with 55 additions and 20 deletions
@@ -1,4 +1,4 @@
// !specifyLocalVariableTypeByDefault: true
fun foo(b: Boolean) {
val s: String? = (if (b) "abc" else null)
val s: String? = if (b) "abc" else null
}