Do not report ABSTRACT_MEMBER_NOT_IMPLEMENTED on enum classes

Partial fix of KT-3454
This commit is contained in:
Pavel V. Talanov
2014-10-09 21:47:02 +04:00
parent e703de5796
commit 4136c80358
6 changed files with 159 additions and 5 deletions
@@ -401,4 +401,8 @@ public class DescriptorUtils {
builtIns.getNumber().getDefaultType().equals(type) ||
builtIns.getAnyType().equals(type);
}
public static boolean classCanHaveAbstractMembers(@NotNull ClassDescriptor classDescriptor) {
return classDescriptor.getModality() == Modality.ABSTRACT || classDescriptor.getKind() == ClassKind.ENUM_CLASS;
}
}