Files
kotlin-fork/idea/testData/slicer/outflow/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
147 B
Kotlin
Vendored

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