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:
Denis.Zharkov
2021-04-12 18:14:33 +03:00
committed by TeamCityServer
parent 803d47daaa
commit 0b0a6d6ede
6 changed files with 39 additions and 27 deletions
@@ -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!!