Rename: Do not report shadowing conflict if redeclaration is detected
#KT-13240 Fixed
This commit is contained in:
+9
@@ -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
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "SameScopeB",
|
||||
"withRuntime": "true",
|
||||
"hint": "Class 'SameScopeB' is already declared in package 'test'"
|
||||
}
|
||||
Reference in New Issue
Block a user