Forbid safe delete action if target element is a property setter parameter

This commit is contained in:
Alexey Sedunov
2014-01-23 19:08:00 +04:00
parent 83c9c49125
commit 001d95f4b8
4 changed files with 36 additions and 2 deletions
@@ -0,0 +1,13 @@
class A {
var foo: String
get() = "foo"
set(<caret>value: String) {
println()
}
}
class B {
fun bar(a: A) {
a.foo = "bar"
}
}
@@ -0,0 +1,13 @@
class A {
var foo: String
get() = "foo"
set(value: String) {
println()
}
}
class B {
fun bar(a: A) {
a.foo = "bar"
}
}