Use effective modality for enum class in JVM_IR
This commit is contained in:
@@ -290,11 +290,6 @@ private fun MemberDescriptor.calcModalityFlag(): Int {
|
||||
|
||||
private val MemberDescriptor.effectiveModality: Modality
|
||||
get() {
|
||||
if (this is ClassDescriptor && kind == ClassKind.ENUM_CLASS) {
|
||||
if (DescriptorUtils.hasAbstractMembers(this)) {
|
||||
return Modality.ABSTRACT
|
||||
}
|
||||
}
|
||||
if (DescriptorUtils.isSealedClass(this) ||
|
||||
DescriptorUtils.isAnnotationClass(this)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user