Files
kotlin-fork/idea/testData/slicer/outflow/simpleCallDereferences.kt
T
Alexey Sedunov 0f44dd6ab0 Analyze Data Flow: Support dereference processing
#KT-11994 In Progress
2017-06-09 17:19:16 +03:00

26 lines
292 B
Kotlin
Vendored

// FLOW: OUT
// WITH_DEREFERENCES
class A {
fun foo() = 1
val bar = 2
}
fun A.fooExt() = 1
val A.barExt: Int get() = 2
fun test() {
val <caret>x = A()
x.foo()
x.bar
x.fooExt()
x.barExt
val y: A? = x
y?.foo()
y?.bar
y?.fooExt()
y?.barExt
}