K2: remove a workaround for suspend functions implementation status

This commit breaks two diagnostic tests:
- testSuspendJavaImplementationFromDifferentClass
- testSuspendJavaOverrides

Related to KT-59818
#KT-63233 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-12-19 17:55:22 +01:00
committed by Space Team
parent 7f7bc1f36c
commit 5409a51ce9
3 changed files with 1 additions and 11 deletions
@@ -408,10 +408,6 @@ fun FirCallableSymbol<*>.getImplementationStatus(
) {
return ImplementationStatus.INHERITED_OR_SYNTHESIZED
}
// TODO, KT-59818: suspend function overridden by a Java class in the middle is not properly regarded as an override
if (isSuspend) {
return ImplementationStatus.INHERITED_OR_SYNTHESIZED
}
}
is FirFieldSymbol -> if (symbol.isJavaOrEnhancement) return ImplementationStatus.CANNOT_BE_IMPLEMENTED
}
@@ -1,7 +0,0 @@
// ISSUE: KT-63233, KT-59818
interface A {
suspend fun foo()
}
class B : A
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// ISSUE: KT-63233, KT-59818
interface A {