[NI] Use context for relevant nested call to run call checkers

#KT-24808 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-06-19 13:20:45 +03:00
parent f69bd54d6c
commit c8c943e5fe
8 changed files with 60 additions and 19 deletions
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
suspend fun wrapUp2() {
withContext<Unit> {
other()
}
}
suspend fun <T> withContext(block: suspend () -> T) {}
suspend fun <R> other(): R = TODO()
@@ -0,0 +1,5 @@
package
public suspend fun </*0*/ R> other(): R
public suspend fun </*0*/ T> withContext(/*0*/ block: suspend () -> T): kotlin.Unit
public suspend fun wrapUp2(): kotlin.Unit