[NI] Use context for relevant nested call to run call checkers
#KT-24808 Fixed
This commit is contained in:
Vendored
+9
@@ -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()
|
||||
compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.txt
Vendored
+5
@@ -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
|
||||
Reference in New Issue
Block a user