LC: rework modality of enum class

It is abstract if it has abstract member.
It is final if it doesn't have enum entries that need subclass.
Otherwise, it is open (i.e., no modifier)

^KT-57567 Fixed
This commit is contained in:
Jinseong Jeon
2023-06-15 19:23:22 -07:00
committed by Ilya Kirillov
parent 7930885131
commit 7f1424737e
7 changed files with 55 additions and 11 deletions
@@ -86,7 +86,7 @@ static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics {
public int apply(int, int);// apply(int, int)
}
public enum ProtocolState /* ProtocolState*/ {
public abstract enum ProtocolState /* ProtocolState*/ {
WAITING {
WAITING();// .ctor()