Analyze Data Flow: Support properties with custom accessors
#KT-11994 In Progress
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user