Introduce inspection detecting self-assignment of properties
So #KT-20714 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ffa9478d0c
commit
204d9e3423
@@ -0,0 +1,17 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
// Minimized from KT-20714 itself
|
||||
class ServerUser {
|
||||
var id = ""
|
||||
var city = ""
|
||||
|
||||
fun toClientUser() = ClientUser().apply {
|
||||
id = <caret>this@ServerUser.id
|
||||
city = this@ServerUser.city
|
||||
}
|
||||
}
|
||||
|
||||
class ClientUser {
|
||||
var id = ""
|
||||
}
|
||||
Reference in New Issue
Block a user