[java-intentions] MethodReturnFix: test for enum synthetic method

EA-796310 - ISE: PsiTreeUtil.findSameElementInCopy

GitOrigin-RevId: f15aa2bf4bcfd7f02013a4ba5871699b27758246
This commit is contained in:
Tagir Valeev
2023-02-13 11:59:22 +01:00
committed by intellij-monorepo-bot
parent 9df1085245
commit 1018a4cf05

View File

@@ -0,0 +1,9 @@
// "Make 'valueOf()' return 'int'" "false"
class X {
void test() {
int x = <caret>Y.valueOf("A");
}
enum Y {A, B, C}
}