Move: Use KtNamedDeclaration as referrer when reporting a conflict

EA-103817 Fixed
This commit is contained in:
Alexey Sedunov
2017-06-27 15:17:14 +03:00
parent 58addf72ff
commit 2e8b374ce8
7 changed files with 35 additions and 1 deletions
@@ -0,0 +1,4 @@
package source
private class X
@@ -0,0 +1,9 @@
package target
import source.X
class Test {
init {
X()
}
}
@@ -0,0 +1,9 @@
package source
private class X
class <caret>Test {
init {
X()
}
}
@@ -0,0 +1 @@
Class Test uses class X which will be inaccessible after move
@@ -0,0 +1,5 @@
{
"mainFile": "source/Foo.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetPackage": "target"
}