Convert put to assignment: don't report when receiver object has custom 'set' method
#KT-33212 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
5abb6bc7a5
commit
653e20dcba
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
class Foo : HashMap<String, String>() {
|
||||
operator fun set(x: String, y: String) {
|
||||
println("wrong method")
|
||||
}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
Foo().<caret>put("x", "y")
|
||||
}
|
||||
Reference in New Issue
Block a user