Avoid exceptions in test setUp cause tearDown would not be invoked
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user