K2: show all Java function with suspend view if possible

This commit fixes two tests related to removed workaround of KT-59818,
and also makes processing suspend functions in J/K hierarchy more consistent.
Before this commit, when we had Java class "suspend" method
(implemented with the help of Continuation) overriding Kotlin suspend fun,
the Kotlin suspend fun was visible in outer use-site scope,
and the Java method was invisible.
Also, we used a special "Java suspend view" just to determine
that Java method overrides Kotlin suspend fun and no more.
After this commit, Java class "suspend" method will be visible
in this hierarchy and Kotlin suspend fun will not.
Also, the "suspend" is visible as a synthetic Kotlin suspend fun
which is more correct.

Related to KT-63233
#KT-59818 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-12-20 11:33:08 +01:00
committed by Space Team
parent 5409a51ce9
commit 1ebf0f5376
3 changed files with 10 additions and 14 deletions
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: wrong ABSTRACT_SUPER_CALL
// TARGET_BACKEND: JVM
// WITH_STDLIB
// WITH_COROUTINES