generating the body of the finally clause _four_ times is one time too many

#KT-1688 Fixed
This commit is contained in:
Dmitry Jemerov
2012-06-08 19:21:41 +02:00
parent 9eb2dd4bfe
commit 102f5c60be
3 changed files with 20 additions and 6 deletions
@@ -0,0 +1,10 @@
fun box(): String {
var s = ""
try {
throw RuntimeException()
} catch (e : RuntimeException) {
} finally {
s += "OK"
}
return s
}