KT-12100 convert try / finally to use: report intention only at try {

This commit is contained in:
Mikhail Glukhikh
2016-12-01 19:36:53 +03:00
parent 0cc52e2ff8
commit 9ea326870d
14 changed files with 63 additions and 40 deletions
@@ -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()
}
}