Rename: Do not report shadowing conflict if redeclaration is detected

#KT-13240 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-15 15:43:49 +03:00
parent 8232c66617
commit 2e887ebcef
5 changed files with 24 additions and 0 deletions
@@ -0,0 +1,9 @@
package test
class /*rename*/SameScopeA { val contentA = 1 }
class SameScopeB { val contentB = 2 }
fun useClass() {
val va = SameScopeA().contentA
val vb = SameScopeB().contentB
}
@@ -0,0 +1,7 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "SameScopeB",
"withRuntime": "true",
"hint": "Class 'SameScopeB' is already declared in package 'test'"
}