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

11 lines
146 B
Kotlin
Vendored

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