Rename: Implement Rename conflict analysis for properties. Qualify property references to resove rename conflicts when possible
#KT-8732 Fixed #KT-12543 Fixed (cherry picked from commit e23029d)
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
open class A(val /*rename*/foo: Int)
|
||||
|
||||
open class B : A() {
|
||||
val bar = 2
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "bar",
|
||||
"withRuntime": "true",
|
||||
"hint": "Parameter after rename will clash with existing property 'bar' in class 'B'"
|
||||
}
|
||||
Reference in New Issue
Block a user