KT-12100 convert try / finally to use: report intention only at try {
This commit is contained in:
@@ -8,10 +8,10 @@ class MyCloseable : Closeable {
|
||||
fun process(x: Int) = x
|
||||
|
||||
fun Int.foo() {
|
||||
try {
|
||||
<caret>try {
|
||||
this@MyCloseable.process(this)
|
||||
}
|
||||
<caret>finally {
|
||||
finally {
|
||||
this@MyCloseable.close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user