Sealed modality support
This commit is contained in:
committed by
Dmitry Petrov
parent
29d1231b97
commit
70dbccb95e
+3
-1
@@ -225,7 +225,9 @@ val MemberDescriptor.effectiveModality: Modality
|
|||||||
return Modality.ABSTRACT
|
return Modality.ABSTRACT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DescriptorUtils.isAnnotationClass(this) || DescriptorUtils.isAnnotationClass(this.containingDeclaration)) {
|
if (DescriptorUtils.isSealedClass(this) ||
|
||||||
|
DescriptorUtils.isAnnotationClass(this) ||
|
||||||
|
DescriptorUtils.isAnnotationClass(this.containingDeclaration)) {
|
||||||
return Modality.ABSTRACT
|
return Modality.ABSTRACT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user