Rename: Forbid rename of synthetic declaration references

#KT-20241 Fixed
This commit is contained in:
Alexey Sedunov
2018-03-02 14:56:32 +03:00
parent 9761e33110
commit e145a64d50
12 changed files with 102 additions and 0 deletions
@@ -205,6 +205,24 @@ public class RenameTestGenerated extends AbstractRenameTest {
doTest(fileName);
}
@TestMetadata("dataClassComponentN/dataClassComponentN.test")
public void testDataClassComponentN_DataClassComponentN() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/dataClassComponentN/dataClassComponentN.test");
doTest(fileName);
}
@TestMetadata("dataClassCopy/dataClassCopy.test")
public void testDataClassCopy_DataClassCopy() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/dataClassCopy/dataClassCopy.test");
doTest(fileName);
}
@TestMetadata("enumValueOf/enumValueOf.test")
public void testEnumValueOf_EnumValueOf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/enumValueOf/enumValueOf.test");
doTest(fileName);
}
@TestMetadata("funTextOccurrences/funTextOccurrences.test")
public void testFunTextOccurrences_FunTextOccurrences() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/funTextOccurrences/funTextOccurrences.test");