KT-12100 convert try / finally to use: 'this' cases, implementation via resolved call

This commit is contained in:
Mikhail Glukhikh
2016-11-29 18:38:53 +03:00
parent 468e975580
commit f513514c53
11 changed files with 171 additions and 23 deletions
@@ -0,0 +1,12 @@
// WITH_RUNTIME
import java.io.File
import java.io.BufferedReader
fun BufferedReader.foo() {
try {
readLine()
}
<caret>finally {
close()
}
}