don't warn about final enum when it is not (IDEA-181211)

This commit is contained in:
Anna.Kozlova
2017-10-26 15:23:08 +02:00
parent 8234e6051b
commit 543d1cf996
3 changed files with 10 additions and 3 deletions
@@ -41,6 +41,12 @@ enum Operation {
<error descr="There is no default constructor available in 'Operation'">class exte extends <error descr="Cannot inherit from final 'Operation'">Operation</error></error> {
}
enum withConstant {
A() {};
}
class extwithConstant extends <error descr="Cannot inherit from enum 'withConstant'">withConstant</error> {}
class use {
void f(Operation op) {
switch(op) {