"Convert try / finally to .use { } call intention introduced" #KT-12100 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val reader = File("hello-world.txt").bufferedReader()
|
||||
try {
|
||||
// do stuff with reader
|
||||
}
|
||||
<caret>finally {
|
||||
reader.close()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user