ensure that a JetEnumEntry is equivalent to a KotlinLightEnumConstant
#KT-5057 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
package testing
|
||||
|
||||
enum class E {
|
||||
BAR
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package testing;
|
||||
|
||||
class JavaClient {
|
||||
E e = E.BAR;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package testing
|
||||
|
||||
enum class E {
|
||||
FOO
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package testing;
|
||||
|
||||
class JavaClient {
|
||||
E e = E.FOO;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "KOTLIN_CLASS",
|
||||
"classId": "testing/E.FOO",
|
||||
"newName": "BAR"
|
||||
}
|
||||
@@ -257,6 +257,12 @@ public class RenameTestGenerated extends AbstractRenameTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("renameKotlinEnumEntry/renameKotlinEnumEntry.test")
|
||||
public void testRenameKotlinEnumEntry_RenameKotlinEnumEntry() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/rename/renameKotlinEnumEntry/renameKotlinEnumEntry.test");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("renameKotlinFunctionInEnum/renameKotlinFunctionInEnum.test")
|
||||
public void testRenameKotlinFunctionInEnum_RenameKotlinFunctionInEnum() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/rename/renameKotlinFunctionInEnum/renameKotlinFunctionInEnum.test");
|
||||
|
||||
Reference in New Issue
Block a user