KT-12100 convert try / finally to use: safe close() is allowed in finally + correct new lines
This commit is contained in:
@@ -8,6 +8,8 @@ class MyCloseable : Closeable {
|
||||
fun process(x: Int) = x
|
||||
|
||||
fun Int.foo() {
|
||||
this@MyCloseable.use { this@MyCloseable.process(this) }
|
||||
this@MyCloseable.use {
|
||||
this@MyCloseable.process(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user