Fix false positive ENCLOSING_SUSPEND_FUNCTION_FOR_SUSPEND_FUNCTION_CALL
Previously added additional processing at findEnclosingSuspendFunction seems unnecessary anymore ^KT-43258 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
803d47daaa
commit
0b0a6d6ede
@@ -0,0 +1,13 @@
|
||||
// FIR_IDENTICAL
|
||||
// SKIP_TXT
|
||||
fun <T> r(x: suspend () -> T): T = null!!
|
||||
|
||||
fun nonReproducer1(): String = r {
|
||||
MyObject.someProperty()
|
||||
}
|
||||
|
||||
object MyObject {
|
||||
val someProperty: String = "TODO()"
|
||||
}
|
||||
|
||||
suspend operator fun <R> String.invoke(): R = null!!
|
||||
Reference in New Issue
Block a user