Move: Report separate conflicts for each property accessor
#KT-13216 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
package test
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
private class TempY
|
||||
|
||||
var tempY: Int = 0
|
||||
get() { TempY(); return field }
|
||||
set(p: Int) { TempY(); field = p }
|
||||
+1
@@ -0,0 +1 @@
|
||||
package test
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
private class <caret>TempY
|
||||
|
||||
var tempY: Int = 0
|
||||
get() { TempY(); return field }
|
||||
set(p: Int) { TempY(); field = p }
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Getter for property tempY uses class TempY which will be inaccessible after move
|
||||
Setter for property tempY uses class TempY which will be inaccessible after move
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "test.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetFile": "target.kt"
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
Property bar uses property foo which will be inaccessible after move
|
||||
Getter for property bar uses property foo which will be inaccessible after move
|
||||
Property foo uses property bar which will be inaccessible after move
|
||||
Reference in New Issue
Block a user