Move: Additional test for KT-10553 (private top-level property with default accessors)
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
package a
|
||||
|
||||
private val used: Int = 2
|
||||
val using: Int = used + 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
object Utils
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package a
|
||||
|
||||
private val <caret>used: Int = 2
|
||||
val using: Int = used + 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
object Utils
|
||||
+1
@@ -0,0 +1 @@
|
||||
Property using uses property used which will be inaccessible after move
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "main.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetFile": "utils.kt"
|
||||
}
|
||||
@@ -551,6 +551,12 @@ public class MoveTestGenerated extends AbstractMoveTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kotlin/moveTopLevelDeclarations/movePrivatePropertyWithDefaultAccessors/movePrivatePropertyWithDefaultAccessors.test")
|
||||
public void testKotlin_moveTopLevelDeclarations_movePrivatePropertyWithDefaultAccessors_MovePrivatePropertyWithDefaultAccessors() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/move/kotlin/moveTopLevelDeclarations/movePrivatePropertyWithDefaultAccessors/movePrivatePropertyWithDefaultAccessors.test");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kotlin/moveTopLevelDeclarations/movePropertyToFile/movePropertyToFile.test")
|
||||
public void testKotlin_moveTopLevelDeclarations_movePropertyToFile_MovePropertyToFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/move/kotlin/moveTopLevelDeclarations/movePropertyToFile/movePropertyToFile.test");
|
||||
|
||||
Reference in New Issue
Block a user