Rename: Do not report redeclaration conflict for private top-level declarations located in different files

#KT-14361 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-22 15:30:29 +03:00
parent a2d3592228
commit b29c704a92
16 changed files with 83 additions and 5 deletions
@@ -0,0 +1,3 @@
package p
val /*rename*/foo = 1
@@ -0,0 +1,3 @@
package p
val bar = 2
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test1.kt",
"newName": "bar",
"hint": "Property 'bar' is already declared in package 'p'"
}
@@ -0,0 +1,3 @@
package p
val bar = 1
@@ -0,0 +1,3 @@
package p
private val bar = 2
@@ -0,0 +1,3 @@
package p
val /*rename*/foo = 1
@@ -0,0 +1,3 @@
package p
private val bar = 2
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test1.kt",
"newName": "bar"
}
@@ -0,0 +1,3 @@
package p
private val bar = 1
@@ -0,0 +1,3 @@
package p
private val bar = 2
@@ -0,0 +1,3 @@
package p
private val /*rename*/foo = 1
@@ -0,0 +1,3 @@
package p
private val bar = 2
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test1.kt",
"newName": "bar"
}