Files
kotlin-fork/idea/testData/inspections/blockingCallsDetection/NestedFunctionsInsideSuspendLambda.kt
T
Vyacheslav Gerasimov d84c5b1608 Switch to 183 platform
2018-12-06 20:16:58 +03:00

11 lines
340 B
Kotlin
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)
}
}
}