use correct safe delete processor for members of local classes and objects

#KT-8894 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-21 16:29:28 +02:00
parent 522a5ea0f2
commit 24ba5a46f1
5 changed files with 22 additions and 4 deletions
@@ -0,0 +1,7 @@
open class SampleParent { var field = 0 }
fun context() {
var v = object : SampleParent() { var ad<caret>dition = 0 }
println(v.field)
println(v.addition)
}
@@ -0,0 +1 @@
property context.&lt;no name provided&gt;.addition has 1 usage that is not safe to delete.