make synthetic enum valueOf/values methods part of PsiClass#getMethods

because all other synthetic methods from records and plugins are also there
inspired by IDEA-CR-57031

GitOrigin-RevId: 9a8b345adaded83fe13980a28db5d9f9acc7450d
This commit is contained in:
Peter Gromov
2020-01-21 06:38:24 +00:00
committed by intellij-monorepo-bot
parent f188b0bb2b
commit 6d71b92a62
29 changed files with 132 additions and 106 deletions
@@ -41,7 +41,7 @@ enum Operation {
enum enumWithTypeParameterInValueOf {
;
<error descr="'valueOf(String)' is already defined in 'enumWithTypeParameterInValueOf'">static <T> void valueOf(String s)</error> {}
<error descr="'valueOf(String)' clashes with 'valueOf(String)'; both methods have same erasure"><error descr="'valueOf(String)' is already defined in 'enumWithTypeParameterInValueOf'">static <T> void valueOf(String s)</error></error> {}
}
<error descr="There is no default constructor available in 'Operation'">class exte extends <error descr="Cannot inherit from enum 'Operation'">Operation</error></error> {