Files
kotlin-fork/idea/testData/slicer/outflow/funResultViaCallableRef.kt
T
Alexey Sedunov d61ddaccb6 Analyze Data Flow: Support callable references
#KT-11994 In Progress
2017-06-09 17:19:18 +03:00

10 lines
133 B
Kotlin
Vendored

// FLOW: OUT
fun foo(f: (Int) -> Int): Int {
return f(1)
}
fun test() {
fun bar(n: Int) = <caret>n
val x = foo(::bar)
}