Files
kotlin-fork/idea/testData/slicer/outflow/anonymousFunBodyExpression.kt
T
Alexey Sedunov 3f411fc93b Analyze Data Flow: Support lambdas/anonymous functions
#KT-11994 In Progress
2017-06-09 17:19:18 +03:00

9 lines
119 B
Kotlin
Vendored

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