Surround with try/catch should generate more Kotlin-style code (KT-5435)

#KT-5435 Fixed
This commit is contained in:
shiraji
2016-10-09 12:10:45 +03:00
committed by Nikolay Krasko
parent c7c51a3d6b
commit 06dad5f45b
19 changed files with 97 additions and 57 deletions
@@ -1,9 +1,8 @@
fun foo() {
val a: String
val b: String
<selection>run</selection> {
val b = <selection>run</selection> {
a = "aaa"
b = "aaa"
"aaa"
}
a.charAt(1)