472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
40 lines
702 B
Kotlin
Vendored
40 lines
702 B
Kotlin
Vendored
// ATTACH_LIBRARY: coroutines
|
|
|
|
package stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure
|
|
|
|
import forTests.builder
|
|
|
|
fun foo(a: Any) {}
|
|
|
|
suspend fun second() {
|
|
foo("call")
|
|
}
|
|
|
|
interface F {
|
|
suspend fun test() {}
|
|
}
|
|
|
|
inline fun call(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
val inClosure = "first"
|
|
call {
|
|
{
|
|
val some = object : F {
|
|
override suspend fun test() {
|
|
foo(inClosure)
|
|
second()
|
|
//Breakpoint!
|
|
foo("other")
|
|
}
|
|
}
|
|
|
|
builder {
|
|
some.test()
|
|
}
|
|
}()
|
|
}
|
|
}
|