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:
committed by
Space Team
parent
7f7bc1f36c
commit
5409a51ce9
@@ -408,10 +408,6 @@ fun FirCallableSymbol<*>.getImplementationStatus(
|
|||||||
) {
|
) {
|
||||||
return ImplementationStatus.INHERITED_OR_SYNTHESIZED
|
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
|
is FirFieldSymbol -> if (symbol.isJavaOrEnhancement) return ImplementationStatus.CANNOT_BE_IMPLEMENTED
|
||||||
}
|
}
|
||||||
|
|||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
// ISSUE: KT-63233, KT-59818
|
|
||||||
|
|
||||||
interface A {
|
|
||||||
suspend fun foo()
|
|
||||||
}
|
|
||||||
|
|
||||||
class B : A
|
|
||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
// ISSUE: KT-63233, KT-59818
|
// ISSUE: KT-63233, KT-59818
|
||||||
|
|
||||||
interface A {
|
interface A {
|
||||||
|
|||||||
Reference in New Issue
Block a user