Surround with try/catch should generate more Kotlin-style code (KT-5435)
#KT-5435 Fixed
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
val a = try {
|
||||
"aaa"
|
||||
} catch (e: <selection><caret>Exception</selection>) {
|
||||
}
|
||||
|
||||
a.charAt(1)
|
||||
}
|
||||
Reference in New Issue
Block a user