Surround with: move declaration out from block
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
<selection>val a = "aaa"
|
||||
val b = "aaa"</selection>
|
||||
|
||||
a.charAt(1)
|
||||
b.charAt(1)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fun foo() {
|
||||
val a: String
|
||||
val b: String
|
||||
try {
|
||||
a = "aaa"
|
||||
b = "aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
}
|
||||
|
||||
a.charAt(1)
|
||||
b.charAt(1)
|
||||
}
|
||||
Reference in New Issue
Block a user