d0ed76ebc8
Intention: obtain lambda argument for some parent call, then get that call (for the lambda argument) and map the argument to the parameter. Before the fix, we were getting call for inner element, not for the lambda argument and as a result, there were exceptions. #KT-26873 Fixed
11 lines
340 B
Plaintext
Vendored
11 lines
340 B
Plaintext
Vendored
fun <T> runBlocking(<warning descr="[UNUSED_PARAMETER] Parameter 'block' is never used">block</warning>: suspend CoroutineScope.() -> T): T = TODO()
|
|
|
|
class CoroutineScope
|
|
|
|
fun test() {
|
|
runBlocking {
|
|
repeat(1) {
|
|
java.lang.Thread.<warning descr="Inappropriate blocking method call">sleep</warning>(2)
|
|
}
|
|
}
|
|
} |