Avoid exceptions in test setUp cause tearDown would not be invoked

This commit is contained in:
Michael Bogdanov
2014-06-19 12:44:46 +04:00
parent a1a205a3db
commit 6b34035455
2 changed files with 4 additions and 12 deletions
@@ -1,9 +1,11 @@
import kotlin.InlineOption.*
class A {
fun foo() {
inlineFun { "test" }
}
inline fun inlineFun(lambda: () -> Unit) {
inline fun inlineFun(inlineOptions(ONLY_LOCAL_RETURN) lambda: () -> Unit) {
val s = object {
fun run() {
lambda()