Rename: Forbid rename of synthetic declaration references
#KT-20241 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
data class XYZ(val x: Int, val y: Int, val z: Int)
|
||||
|
||||
fun test() {
|
||||
val y = XYZ(1, 2, 3)./*rename*/component2()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
data class XYZ(val x: Int, val y: Int, val z: Int)
|
||||
|
||||
fun test() {
|
||||
val y = XYZ(1, 2, 3)./*rename*/component2()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "component123",
|
||||
"withRuntime": "true",
|
||||
"hint": "Rename is not applicable to synthetic declaration"
|
||||
}
|
||||
Reference in New Issue
Block a user