Analyze Data Flow: Support properties with custom accessors

#KT-11994 In Progress
This commit is contained in:
Alexey Sedunov
2017-05-30 19:40:14 +03:00
parent d61ddaccb6
commit ea7d535ae7
25 changed files with 267 additions and 32 deletions
@@ -0,0 +1,14 @@
// FLOW: IN
class A(var b: Boolean) {
var foo: Int
get() = if (b) field else 0
set(value) {
field = if (b) value else 0
}
fun test() {
val x = <caret>foo
foo = 1
}
}