Partially revert "[FE] Stop ignoring ABSTRACT_MEMBER_NOT_IMPLEMENTED for expect classes"
^KT-61039 Fixed
KT-59739 is now open for K1 (but fixed in K2)
Review: https://jetbrains.team/p/kt/reviews/11867/timeline
This partially reverts commit 4f3ecedbca.
Only K1 part is reverted.
Motivation for revert: KT-59739 cannot be properly fixed in K1 because
of the bug it causes - KT-61039
We just accepted that we will have one more "green in K1 -> red in K2"
case
This commit is contained in:
@@ -505,6 +505,10 @@ public class DescriptorUtils {
|
||||
UnsignedTypes.INSTANCE.isUnsignedType(type);
|
||||
}
|
||||
|
||||
public static boolean classCanHaveAbstractFakeOverride(@NotNull ClassDescriptor classDescriptor) {
|
||||
return classCanHaveAbstractDeclaration(classDescriptor) || classDescriptor.isExpect();
|
||||
}
|
||||
|
||||
public static boolean classCanHaveAbstractDeclaration(@NotNull ClassDescriptor classDescriptor) {
|
||||
return classDescriptor.getModality() == Modality.ABSTRACT
|
||||
|| isSealedClass(classDescriptor)
|
||||
|
||||
Reference in New Issue
Block a user